Skip to content

Glossary: C# Beyond the Basics

relational and logical patterns

Also written: relational pattern, logical patterns, and, or, not

Relational patterns compare, such as `< 1` or `>= 12`. The logical patterns `and`, `or` and `not` combine patterns, so `2 or 3` matches either number.

Where the book teaches it

Related terms

patternswitch expression