I've been frustrated to see how much useless repetition I had in my C# conditionals and switches, but I knew programmers could do better. In this post, I'll show you how to make your code more concise with Unity C# Pattern Matching (C# 7.0)

Quick Navigation
What is Unity C# Pattern Matching?
How to Use Unity C# Pattern Matching
Unity C# Pattern Matching — if Statements
Unity C# Pattern Matching — switch Statements
Does C# Pattern Matching Make a Performance Difference?
What is Unity C# Pattern Matching?
Are you doing type casting in your if …