C# pattern matching enhancements
GPTKB entity
Statements (30)
| Predicate | Object |
|---|---|
| gptkbp:instanceOf |
gptkb:C#_language_feature
|
| gptkbp:appliesTo |
switch statements
switch expressions 'is' expressions |
| gptkbp:documentation |
https://learn.microsoft.com/en-us/dotnet/csharp/pattern-matching
|
| gptkbp:enhancedInVersion |
gptkb:C#_10.0
gptkb:C#_8.0 C# 11.0 C# 9.0 |
| gptkbp:feature |
positional patterns
property patterns type patterns 'is' expressions 'switch' expressions 'when' clauses discard patterns list patterns logical patterns nested patterns pattern combinators relational patterns |
| gptkbp:introducedIn |
C# 7.0
|
| gptkbp:purpose |
improve code readability
reduce boilerplate code enable concise data deconstruction support advanced conditional logic |
| gptkbp:supportedBy |
gptkb:Microsoft_.NET
|
| gptkbp:bfsParent |
gptkb:Pattern_Matching_for_switch_(Second_Preview)
|
| gptkbp:bfsLayer |
8
|
| https://www.w3.org/2000/01/rdf-schema#label |
C# pattern matching enhancements
|