Pattern Matching in C#
Pattern Matching in C#
Section titled “Pattern Matching in C#”Every page here belongs directly to the C# pattern matching feature set.
| Feature | Introduced In | Why it belongs here | Guide |
|---|---|---|---|
| Pattern matching | C# 7.0 | The core feature family entry point. | Guide |
| Constant patterns | C# 7.0 | Matches literal and constant values. | Guide |
| Property patterns | C# 8.0 | Matches nested object member state. | Guide |
| Relational patterns | C# 9.0 | Matches values by range and comparison. | Guide |
| List patterns | C# 11.0 | Matches sequence shapes and contents. | Guide |
| Switch expressions | C# 8.0 | Pattern-driven branching expression form. | Guide |