| title | ms.date | ms.prod | ms.technology | ms.topic | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | translation.priority.ht | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
default (C# Reference) |
2017-08-04 |
.net |
|
article |
|
|
|
14c48aaa-7d35-4058-a1a4-f53353050579 |
11 |
BillWagner |
wiwagn |
|
default (C# Reference)
The default keyword.
The default keyword can be used in the switch statement or in a default value expression:
-
The switch statement: Specifies the default label.
-
Default value expressions: Produces the default value of the type. This will be null for reference types and zero for value types, and the 0 bit pattern for structs.