Search This Blog

Wednesday, December 2, 2015

default keyword c#

C# > Keywords > default

This keyword is used in two ways.

  • default label in switch statement
  • generics: the default value
    • null for reference type
    • 0 for value type