What is the benefit/downside to using a switch
statement vs. an if/else
in C#. I can\'t imagine there being that big of a difference, other than m
Side topic, but I often worry about (and more often see) if
/else
and switch
statement get way too large with too many cases. These often hurt maintainability.
Common culprits include:
To fix: