Which C# feature introduced pattern matching capabilities?
- for loops
- if-else statements
- switch expressions
- while loops
Explanation
Switch expressions, introduced in C# 8.0, provide powerful pattern matching capabilities, allowing more concise and expressive conditional logic compared to traditional switch statements.