Treat If-Else as a Code Smell Until Proven Otherwise
Techniques for If-Else Refactoring in C#
Published in
6 min readMay 14, 2021
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.