Switch

Pick one of many blocks of code by the value of a single variable with C#'s switch statement, including shared cases and a default.

Updated

Cheat sheet: Switch
Category
C#
Level
Apprentice
Tags
break (c-sharp), c-sharp, switch Statement (c-sharp)