Tag Archives: case blocks

Understand ways to end case blocks in C#

There are several ways that you can exit case blocks in a switch statement. For example, consider the following code. string result = “”; int control = 1; switch (control) { case 1: case 2: result = “One or two”; … Continue reading

Posted in syntax | Tagged , , , , , , , , , , | 2 Comments