< C Sharp Programming < Keywords
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
nullfor reference types and zero for value types.
References
- ↑ "default (C# Reference)". http://msdn.microsoft.com/en-us/: MSDN. http://msdn2.microsoft.com/en-us/library/25tdedf5.aspx. Retrieved 2011-08-09.
| C# Keywords | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Special C# Identifiers (Contextual Keywords) | |||||||||||||||
| |||||||||||||||
| Contextual Keywords (Used in Queries) | |||||||||||||||
|
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.