A Less Ugly Switch Statement For C#(www.lostechies.com)
submitted by
arikp(1204) 1 year, 7 months ago
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.
...
|category: C#
|Views: 25
tags:
C# another
Everyones tags:
Your Tags: