Keywords

The following words are treated as keywords in C#, and have special meaning:

RemObjects C# Keywords

RemObjects C# adds the following handful of keywords to support some Language Extensions to Microsoft's standard C# implementation.

Standard C# Keywords

These standard keywords are defined by the C# language spec (as of version 5.0 of the C# language), and are also all used by RemObjects C#:

  • abstract
  • add
  • as
  • ascending
  • assembly
  • async
  • await
  • base
  • bool
  • break
  • by
  • byte
  • case
  • catch
  • char
  • checked
  • class
  • const
  • continue
  • decimal
  • default
  • delegate
  • descending
  • do
  • double
  • dynamic
  • else
  • enum
  • equals
  • event
  • explicit
  • extern
  • false
  • finally
  • fixed
  • float
  • for
  • foreach
  • from
  • get
  • goto
  • group
  • if
  • implicit
  • in
  • int
  • interface
  • internal
  • into
  • is
  • join
  • let
  • lock
  • long
  • module
  • namespace
  • new
  • null
  • object
  • on
  • operator
  • orderby
  • out
  • override
  • params
  • partial
  • private
  • protected
  • public
  • readonly
  • ref
  • remove
  • return
  • sbyte
  • sealed
  • select
  • set
  • short
  • sizeof
  • stackalloc
  • static
  • string
  • struct
  • switch
  • this
  • throw
  • true
  • try
  • typeof
  • uint
  • ulong
  • unchecked
  • unsafe
  • ushort
  • using
  • value
  • var
  • virtual
  • void
  • volatile
  • where
  • while
  • yield

The following four (undocumented) standard C# keywords are not supported. RemObjects C# will recognize them as keywords, but merely emit an error and not allow their use:

  • __arglist
  • __refvalue
  • __makeref
  • __reftype

 

Version Notes