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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -