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.3 The empty statement Paragraph 11 An empty-statement does nothing. empty-statement : ; Paragraph 21 An empty statement is used when there are no operations to perform in a context where a statement is required. Paragraph 31 Execution of an empty statement simply transfers control to the end point of the statement. 2 Thus, the end point of an empty statement is reachable if the empty statement is reachable. [Example: An empty statement can be used when writing a while statement with a null body:
bool ProcessMessage() {...}  
void ProcessMessages() {  
   while (ProcessMessage())  
   ;  
}  
Also, an empty statement can be used to declare a label just before the closing "}" of a block:
void F() {  
   ...  
   if (done) goto exit;  
   ...  
   exit: ;  
}  
end example]
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS