ECMA-334 C# Language Specification

15.8.2: The do statement

The do statement conditionally executes an embedded statement one or more times.

do-statement
do embedded-statementwhile ( boolean-expression ) ;

A do statement is executed as follows:

Within the embedded statement of a do statement, a break statement (15.9.1) may be used to transfer control to the end point of the do statement (thus ending iteration of the embedded statement), and a continue statement (15.9.2) may be used to transfer control to the end point of the embedded statement (thus performing another iteration of the do statement).

The embedded statement of a do statement is reachable if the do statement is reachable.

The end point of a do statement is reachable if at least one of the following is true: