Treat If-Else as a Code Smell Until Proven Otherwise

Techniques for If-Else Refactoring in C#

Sasha Marfut
Level Up Coding
Published in
6 min readMay 14, 2021

--

Photo by Vladislav Babienko on Unsplash

If-Else is one of the simplest and most common programming constructs that is used in any software application, regardless of its complexity.

There is nothing wrong with using If-Else statements as long as they used properly.

--

--

1 million+ views on Medium | .NET, Design Patterns, Architecture, API