Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
default
Collapse the table of content
Expand the table of content

default (C# Reference)

The default keyword.

The default keyword can be used in the switch statement or in generic code:

  • 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.

Community Additions

ADD
Show:
© 2015 Microsoft