Board Thread:Questions and Answers/@comment-64.134.221.78-20150212054200/@comment-9531161-20150220031813

If you're into C#, you should really look into things like templates, standard container classes (like Dictionary and List), and especially LINQ. You'll start coding like a monster, and you'll become one with the code. Your program will flow straight through your fingers, and the programming language will no longer be the medium between you and the machine. The code will simply disappear as your thoughts are pumped directly into the computer. Things like "select" statements (which are relics of ancient programming languages) will fade into the dust, as you command the forces of generics and wield the power of LINQ.

But seriously, I don't think I've ever used a switch statement in C#. If you're interested in C#, I would definitely look into what it has to offer. Boundaries will be broken.

OK, I'm done being silly. SquareFingers' way of translating a switch statement into code is excellent. On the other hand, if you're used to being able to perform switch statements on strings, you'll have to come up with something different. You COULD use the string directly as the label of the function to go to by just appending the "@" in front (if necessary).