Share via


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).

C# Language Specification

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

  • 2.4.4.6 The null literal

See Also

Reference

C# Keywords
Literal Keywords (C# Reference)

Concepts

C# Programming Guide

Other Resources

C# Reference
Default Values Table (C# Reference)