Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Operator Keywords

This section introduces the following keywords:

  • as   Convert an object to a compatible type.
  • is   Check the run-time type of an object.
  • new
  • sizeof   Obtain the size of a type.
  • typeof   Obtain the System.Type object for a type.
  • true   Return the boolean value true.
  • false   Return the boolean value false.
  • stackalloc   Allocate 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:

  • checked   Specify checked context.
  • unchecked   Specify unchecked context.

See Also

C# Keywords | C# Operators

Show:
© 2015 Microsoft