Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specification


15 Statements
15.8 Iteration statements
15.8.1 The while statement
Paragraph 11 The while statement conditionally executes an embedded statement zero or more times. while-statement : while ( boolean-expression ) embedded-statement
Paragraph 21 A while statement is executed as follows: - 2 The boolean-expression (§14.16) is evaluated.
- 3 If the boolean expression yields true, control is transferred to the embedded statement. 4 When and if control reaches the end point of the embedded statement (possibly from execution of a continue statement), control is transferred to the beginning of the while statement.
- 5 If the boolean expression yields false, control is transferred to the end point of the while statement.
Paragraph 31 Within the embedded statement of a while statement, a break statement (§15.9.1) may be used to transfer control to the end point of the while 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 while statement).
Paragraph 41 The embedded statement of a while statement is reachable if the while statement is reachable and the boolean expression does not have the constant value false.
Paragraph 51 The end point of a while statement is reachable if at least one of the following is true: - 2 The while statement contains a reachable break statement that exits the while statement.
- 3 The while statement is reachable and the boolean expression does not have the constant value true.
|
Jagger Software Ltd |
Company # 4070126 |
VAT # 762 5213 42 |

