Palavras-chave de instrução (Referência de C#)Statement keywords (C# Reference)
As instruções são instruções do programa.Statements are program instructions. Exceto conforme descrito nos tópicos referenciados na tabela a seguir, as instruções são executadas em sequência.Except as described in the topics referenced in the following table, statements are executed in sequence. A tabela a seguir lista as palavras-chave da instrução C#.The following table lists the C# statement keywords. Para obter mais informações sobre instruções que não são expressos com qualquer palavra-chave, consulte Instruções.For more information about statements that are not expressed with any keyword, see Statements.
CategoriaCategory | Palavras-chave de C#C# keywords |
---|---|
Instruções de seleçãoSelection statements | if, else, switch, caseif, else, switch, case |
Instruções de iteraçãoIteration statements | do, for, foreach, in, whiledo, for, foreach, in, while |
Instruções de atalhoJump statements | break, continue, default, goto, return, yieldbreak, continue, default, goto, return, yield |
Instruções para tratamento de exceçõesException handling statements | throw, try-catch, try-finally, try-catch-finallythrow, try-catch, try-finally, try-catch-finally |
Marcado e desmarcadoChecked and unchecked | checked, uncheckedchecked, unchecked |
instrução Fixedfixed statement | fixadofixed |
instrução Locklock statement | proprietáriolock |