Watch C# switch Statement
- 2019
- 7 min
The C# switch statement is a control statement different from the if statement because it evaluates a single expression against a list of multiple possible cases. Every case is related to the single expression and must end with the break or goto case or an empty block. The break statement passes control out of the switch. You can omit a break statement if two cases lead to the same action.