A keyword is an identifier-like sequence of characters that is reserved, and cannot be used as an identifier except when prefaced by the
- keyword: one of
abstract as base bool break byte case catch char checked class const continue decimal default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long namespace new null object operator out override params private protected public readonly ref return sbyte sealed short sizeof stackalloc static string struct switch this throw true try typeof uint ulong unchecked unsafe ushort using virtual void volatile while
In some places in the grammar, specific identifiers have special meaning, but are not keywords. For example, within a property declaration, the "
get" and "
set" identifiers have special meaning (Section 10.6.2). An identifier other than
set is never permitted in these locations, so this use does not conflict with a use of these words as identifiers.