Export (0) Print
Expand All
1 out of 7 rated this helpful - Rate this topic

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.

Reference

Concepts

Other Resources

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.