Jon Jagger
jon@jaggersoft.com
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 Specificationpreviousnextprevious at this levelnext at this level 15 Statementsprevious at this levelnext at this level 15.9 Jump statementsprevious at this levelnext at this level 15.9.1 The break statement Paragraph 11 The break statement exits the nearest enclosing switch, while, do, for, or foreach statement. break-statement : break ; Paragraph 21 The target of a break statement is the end point of the nearest enclosing switch, while, do, for, or foreach statement. 2 If a break statement is not enclosed by a switch, while, do, for, or foreach statement, a compile-time error occurs. Paragraph 31 When multiple switch, while, do, for, or foreach statements are nested within each other, a break statement applies only to the innermost statement. 2 To transfer control across multiple nesting levels, a goto statement (§15.9.3) must be used. Paragraph 41 A break statement cannot exit a finally block (§15.10). 2 When a break statement occurs within a finally block, the target of the break statement must be within the same finally block; otherwise a compile-time error occurs. Paragraph 51 A break statement is executed as follows: Paragraph 61 Because a break statement unconditionally transfers control elsewhere, the end point of a break statement is never reachable.
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS