Applying Strategy Pattern Instead of Using Switch Statements
Once in a while I’m stumbling on switch statements during a Code Review session. Whenever this is happening my first reaction is to understand why did the developer use it. Since using switch statement sometime implies spaghetti code and also can get very crowded (in case statements of course) in this post I’m going to show an alternative method that I pr...
- Published: Nov 22 / 13:08.
- Views: 2431, Clicks: 1552
- Via: blogs.microsoft.co.il
- Tags: .net, how-to, methodology
- Submitter: gilf