예제 #1
0
 public static long Parse(string str, NumberStyle style)
 {
     if (style == NumberStyle.Hexadecimal)
     {
         return(Int64Extensions.ParseHex(str));
     }
     return(Int64Extensions.Parse(str));
 }
예제 #2
0
        private static long ParseHex(string str)
        {
            ulong result;

            if (Int64Extensions.TryParseHex(str, out result))
            {
                return((long)result);
            }
            throw new Exception();
        }
예제 #3
0
        public static long Parse(string str)
        {
            long result;

            if (Int64Extensions.TryParse(str, out result))
            {
                return(result);
            }
            throw new Exception();
        }