示例#1
0
        public static bool IsDefaultValueOfType(this object value, Type type)
        {
            object defaultValue = type.GetDefaultValue();

            return(Utils.AreEqual(value, defaultValue));
        }