C# – Using the ‘not’, ‘and’, ‘or’ operators
I’ll show examples of using the pattern matching operators – ‘not’, ‘and’, ‘or‘ – with the is operator. These are nice syntax sugar that make conditional logic a bit easier to read. Note: ‘not’, ‘and’, ‘or’ were added in C# 9. ‘not’ operator Here’s an example of the not operator: This is checking if the … Read more