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
The switch statement is definitely the faster then a if else if. There are speedtest that have been supplied on it by BlackWasp
http://www.blackwasp.co.uk/SpeedTestIfElseSwitch.aspx
--Check it out
But depends heavily on the possibilities that you're trying to account for, but I try to use a switch statement whenever possible.