internal static bool IsIntegralType()

in src/Json.Schema.ToDotNet/ObjectExtensions.cs [10:31]


        internal static bool IsIntegralType(this object obj)
        {
            if (obj == null)
            {
                return false;
            }

            switch (Type.GetTypeCode(obj.GetType()))
            {
                case TypeCode.Byte:
                case TypeCode.SByte:
                case TypeCode.UInt16:
                case TypeCode.UInt32:
                case TypeCode.UInt64:
                case TypeCode.Int16:
                case TypeCode.Int32:
                case TypeCode.Int64:
                    return true;
                default:
                    return false;
            }
        }