relational pattern
A pattern that compares with a constant using <, >, <= or >=, such as > 20m.
In more detail
It has no left-hand side: the value being matched is always what it compares. Joined with and, as in > 20m and < 50m, it expresses a range in one arm.
Related terms
- pattern matching — Testing a value against a shape, such as a type, a range or the values of its properties, and optionally extracting parts of it in the same step.
- logical pattern — The C# pattern keywords and, or and not, which combine or negate other patterns.
Taught in
- Records, Pattern Matching, and Modern C# — Modern .NET Core, C# & Enterprise Microservices