c# - How Many Combinations In This If Statement -
OK - I have work with someone who wrote something like this
if () if () if () if ()
I do not like it !!
If there are ten different Boolean flags, then how many combinations are there?
10 factual?
I am trying to explain why it is bad
two flag Two states and 10 flags mean 2 ^ 10 = 1024
Comments
Post a Comment