Yurttas/PL/OOL/CS/F/02/04/02/01/index page

c# programming language fundamentals
2. c# language fundamentals

statement - embedded-statement - empty-statement


An empty-statement does nothing.

empty-statement:
  ;

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.

An empty statement can be used when writing a while statement with
a null body

c#, .net framework, and visual studio.net << | >> classes, objects


Dr. Salih Yurttas