ECMA-334 C# Language Specification12.2: Default values |
The following categories of variables are automatically initialized to their default values:
The default value of a variable depends on the type of the variable and is determined as follows:
value-type
, the default value is the same as the value computed by the value-type's default constructor (11.1.1). reference-type
, the default value is null.