Q: How to get the default value of a type? return default(myObj.GetType()) does not work.
return default(myObj.GetType())
A: Forums Say...
public static object DefaultValueOfType(Type t) { return t.IsValueType ? Activator.CreateInstance(t) : null; }