Esempio n. 1
0
        internal static bool Parse(string s, NumberStyles style, IFormatProvider fp, bool tryParse, out Int64 result, out Exception exc)
        {
            result = 0;

            if (!IntParser.CheckInput(s, style, tryParse, out exc))
            {
                return(false);
            }

            IntParser parser = new IntParser(s, style, fp, tryParse);

            Num n = new Num();

            if (!parser.Start(n))
            {
                exc = parser.exc;
                return(false);
            }

            result = n.number;

            return(true);
        }