C# switch statements are hashed
Stumbled upon an interesting question on StackOverflow today regarding what goes on under the hood when you use the switch statement in C#. Based on the answer by Brian Gideon (kudos for doing all that legwork!), for the following code: the C# compiler will: if the number of case statements is small then emit a …