description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||
---|---|---|---|---|---|---|---|---|
null keyword - C# Reference |
null keyword |
07/20/2015 |
|
|
fecb1c60-6232-4efe-87f7-9a86ba2e9119 |
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]
[!INCLUDECSharplangspec]