C# lets you write the same task in different ways, but not all ways get fast code from the compiler. Pattern matching can help your C# code run faster by letting the compiler make better choices.