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
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

null (C# Reference)

The null keyword is a literal that represents a null reference, one that does not refer to any object. null is the default value of reference-type variables.

C# 2.0 introduces nullable types, which are data types that may be set to an undefined value. See Nullable Types (C# Programming Guide).

For more information, see the following sections in the C# Language Specification:

  • 2.4.4.6 The null literal

Community Additions

ADD
Show:
© 2015 Microsoft