The previous article in our C# 9 series looked at top-level programs and target-typed expressions. In this article, we’ll cover new features for pattern matching. You can find an overview of the syntax offered by previous versions of C# in C# 8 pattern matching.
Read more: https://developers.redhat.com/blog/2021/04/06/c-9-pattern-matching/