C# 9 – Pattern matching operators: is not, and, or

In C# 9 they added several new pattern matching operators that can be combined with the is operator. This is nice syntax sugar that makes conditional logic easier to read. In this article I’ll show practical examples of using the new operators – is not, and, or. not pattern: is not A Here’s an example … Read more