4 out of 48 rated this helpful - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ