Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You can use the default keyword in the following contexts:
- To specify the default case in the
switchstatement. - As the default operator or literal to produce the default value of a type.
- As the
defaulttype constraint on a generic method override or explicit interface implementation.
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.