Refactoring and removing switch statements in C#

Switch statements are a common way to handle different cases in a program, but they can quickly become unwieldy and difficult to maintain as the number of cases increases. In this blog post, we’ll take a look at how to refactor and remove switch statements in C# to make your code more readable and maintainable. […]

Kill the Switch statements

Has I continue my work as a Software Engineer I get exposed to a plethora of development styles, but one common element is the “Switch” statements. I don’t believe this is the best approach. Why? Because if there is another condition that needs to be evaluated you need to modify the code that has already […]