Changes

Jump to: navigation, search

The C Sharp switch Statement

308 bytes added, 21:27, 15 January 2008
no edit summary
== Using the switch Statement ==
 
The syntax for a C# ''switch'' statement is as follows:
 
switch (''expression'')
{
case ''constant'':
''statements''
''break/jump''
case ''constant'':
''statements''
''break/jump''
 
default:
''statements''
''break/jump''
}

Navigation menu