Learn how to refactor a series of ifs using the improved switch statement with pattern matching in C# 7.