C# Programming/Keywords/default
The default
keyword can be used in the switch
statement or in generic code:[1]
- The switch statement: Specifies the default label.
- Generic code: Specifies the default value of the type parameter. This will be
null
for reference types and zero for value types.
References
edit- ↑
"default (C# Reference)". http://msdn.microsoft.com/en-us/: MSDN. Retrieved 2011-08-09.
{{cite web}}
: External link in
(help)|location=
C# Keywords | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Special C# Identifiers (Contextual Keywords) | |||||||||||||||
| |||||||||||||||
Contextual Keywords (Used in Queries) | |||||||||||||||
|