Statement Keywords (C# Reference)

 

Updated: July 20, 2015

System_CAPS_ICON_note.jpg Note

For the latest documentation on C#, visit the C# Guide on docs.microsoft.com.

Statements are program instructions. Except as described in the topics referenced in the following table, statements are executed in sequence. The following table lists the C# statement keywords. For more information about statements that are not expressed with any keyword, see Statements.

CategoryC# keywords
Selection statementsif, else, switch, case
Iteration statementsdo, for, foreach, in, while
Jump statementsbreak, continue, default, goto, return, yield
Exception handling statementsthrow, try-catch, try-finally, try-catch-finally
Checked and uncheckedchecked, unchecked
fixed Statementfixed
lock Statementlock

C# Reference
Statements
C# Keywords

Show: