Useful extensions from C# world
public static bool IsDefault(this object o) { if (o == null) { return true; } return (o.GetType().IsValueType) ? Activator.CreateInstance(o.GetType()).Equals(o) : false; }