Dela via


Statement Keywords (C# Reference)

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 (C# Programming Guide).

Category

C# keywords

Selection statements

if, else, switch, case

Iteration statements

do, for, foreach, in, while

Jump statements

break, continue, default, goto, return, yield

Exception handling statements

throw, try-catch, try-finally, try-catch-finally

Checked and unchecked

checked, unchecked

fixed Statement

fixed

lock Statement

lock

See Also

Reference

Statements (C# Programming Guide)

C# Keywords

Other Resources

C# Reference