Operator Keywords (C# Reference)
Updated: July 20, 2015
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
Used to perform miscellaneous actions such as creating objects, checking the run-time type of an object, obtaining the size of a type, and other actions. This section introduces the following keywords:
as Converts an object to a compatible type.
await Suspends an async method until an awaited task is completed.
is Checks the run-time type of an object.
sizeof Obtains the size of a type.
typeof Obtains the System.Type object for a type.
stackalloc Allocates a block of memory on the stack.
The following keywords, which can be used as operators and as statements, are covered in the Statements section: