public static bool IsDefaultValueOfType(this object value, Type type) { object defaultValue = type.GetDefaultValue(); return(Utils.AreEqual(value, defaultValue)); }