Pattern Matching
is/switch patterns, property, positional, list patterns, exhaustiveness, null checks
A pattern is a test you apply to a value: "is it a Circle?", "is it null?", "is it between 0 and 100?", "does it have a Country of "CY"?". C# lets you use patterns in three places: the is expression (if (shape is Circle c)), the switch…