ECMA-334 C# Language Specification15.3: The empty statement |
An empty-statement
does nothing.
;
An empty statement is used when there are no operations to perform in a context where a statement is required.
Execution of an empty statement simply transfers control to the end point of the statement. Thus, the end point of an empty statement is reachable if the empty statement is reachable.
bool ProcessMessage() {...}
void ProcessMessages() {
while (ProcessMessage())
;
}
end example]
void F() {
...
if (done) goto exit;
...
exit: ;
}