New C#9 keywords 'and' 'or' 'not' - NDepend

added by DotNetKicks
10/5/2020 8:22:18 PM

26 Views

The C#9 language introduces new controversial keywords: and keyword: Conjunctive patterns. Require both patterns to match or keyword: Disjunctive patterns. Require either pattern to match not keyword: Negative patterns. Require that a pattern doesn't match In this article we'll explore how some common expressions can be rewritten with these keywords and how they improve the pattern matching syntax.


0 comments