Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1 KB

File metadata and controls

28 lines (21 loc) · 1 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
null keyword - C# Reference
null keyword
07/20/2015
null
null_CSharpKeyword
null keyword [C#]
fecb1c60-6232-4efe-87f7-9a86ba2e9119

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. Ordinary value types cannot be null, except for nullable value types.

The following example demonstrates some behaviors of the null keyword:

[!code-csharpcsrefKeywordsLiteral#1]

C# language specification

[!INCLUDECSharplangspec]

See also