Export (0) Print
Expand All

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:

  • The null literal

Community Additions

© 2015 Microsoft