While we all know default value of each type, at some point we might have generic implementation. So what if we need to make use of default value of give type?
Following method demonstrates, usage of default keyword (code sample in C#)
public T SomeMethod
return some valid value;
This was new to me and in past I had situation where I wanted to return default value for variable type. Now I know exactly, how this can be done!!!!!!