Keywords – default

Use 1: In switch statements

Use 2: In Generics

Inside a generic class or structure the default keyword can be used to reset variables to there default .NET value, same as the value a default constructor sets when you make a new class without a custom constructor

For example, if we had a class

public class motors()
{

//if T was an integer, we have the value ZERO that is the default for INTs
horsePower = default(T);

}

default of numeric values is Zero
default of Referance types is null