LANGUAGE
Relational and logical patterns
Matches a value against relational constant patterns joined by pattern combinators. Do not substitute && inside the pattern.
Formal Syntax & Structure
csharp syntaxcsharp
value is >= 1 and <= 10Working Example
Example Snippetcsharp
int n = 7; bool fits = n is >= 1 and <= 10;