A Less Ugly Switch Statement For C#

added by arikp
10/8/2010 3:48:12 PM

0 Kicks, 122 Views

I know switch statements are considered “evil” because they are very procedural code, they violate the Open-Closed Principle, etc etc. But every now and then I don’t see a need to do anything more than a switch statement because the complexity of the scenario does not need anything more, and the code’s maintainability is not going to be so adversely affected by it. ...


10/8/2010 5:30:04 PM
Interesting post, but don't really see the point.