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.2 Blocks
Paragraph 11 A block permits multiple statements to be written in contexts where a single statement is allowed. block : { statement-listopt }
Paragraph 21 A block consists of an optional statement-list (§15.2.1), enclosed in braces. 2 If the statement list is omitted, the block is said to be empty.
Paragraph 31 A block may contain declaration statements (§15.5). 2 The scope of a local variable or constant declared in a block is the block.
Paragraph 41 Within a block, the meaning of a name used in an expression context must always be the same (§14.5.2.1).
Paragraph 51 A block is executed as follows: - 2 If the block is empty, control is transferred to the end point of the block.
- 3 If the block is not empty, control is transferred to the statement list. 4 When and if control reaches the end point of the statement list, control is transferred to the end point of the block.
Paragraph 61 The statement list of a block is reachable if the block itself is reachable.
Paragraph 71 The end point of a block is reachable if the block is empty or if the end point of the statement list is reachable. |
Jagger Software Ltd |
Company # 4070126 |
VAT # 762 5213 42 |

