In addition to selection and repetition statements, C# provides statements
continue to alter the flow of control. The preceding section showed how
break can be used to terminate a
switch statement’s execution. This section discusses how to use
break to terminate any repetition statement.
break statement, when executed in a
foreach, causes immediate exit from that statement. Execution typically continues with the first statement after the control statement—you’ll see that there are other possibilities as you learn about additional statement types in C#. Common uses of the
break statement are to escape early from a repetition statement or to skip ...