Glossary: C# Beyond the Basics
switch expression
Also written: switch expressions, arms
A `switch` that picks a value rather than running statements: `x switch { pattern => result, ... }`. The first matching arm wins, so order matters.
Glossary: C# Beyond the Basics
Also written: switch expressions, arms
A `switch` that picks a value rather than running statements: `x switch { pattern => result, ... }`. The first matching arm wins, so order matters.