Esempio n. 1
0
        private static string GetNumericSubtype(IConvertible convValue)
        {
            string subtype = null;

            if (convValue is decimal)
            {
                subtype = "decimal";
            }
            else if (convValue.IsFloatingPoint())
            {
                subtype = "floating-point";
            }
            else if (convValue.IsUnsignedIntegral())
            {
                subtype = "unsigned-integer";
            }
            else if (convValue.IsSignedIntegral())
            {
                subtype = "signed-integer";
            }

            return(subtype);
        }
        private static string GetNumericSubtype(IConvertible convValue)
        {
            string subtype = null;

            if (convValue is decimal)
            {
                subtype = "decimal";
            }
            else if (convValue.IsFloatingPoint())
            {
                subtype = "floating-point";
            }
            else if (convValue.IsUnsignedIntegral())
            {
                subtype = "unsigned-integer";
            }
            else if (convValue.IsSignedIntegral())
            {
                subtype = "signed-integer";
            }

            return subtype;
        }