One of the new feature of C# 7 is an improved version of the switch statement that now support pattern matching. Have a look at this video that explore how to refactor a series of if using the new switch statement with pattern matching. Sharing is Caring
[…] Switch Statement with Pattern Matching […]