Keywords
Keywords are reserved words predefined to the C# compiler.
These keywords cannot be used as identifiers.
However, if you want to use these keywords as identifiers, you may prefix the keyword with the @ character.
The following table lists the reserved keywords in C#:
In C#, some words having special meaning in context of code, such as get and set, are called contextual keywords and can be used as identifiers outside that context.
Generally, as new keywords are added to the C# language, they are added as contextual keywords in order to avoid breaking programs written in earlier versions.
The following table lists the contextual keywords in C#: