Beispiel #1
0
 public static double GetNumericValue(string s, int index)
 {
     if (s == null)
     {
         throw new ArgumentNullException(nameof(s));
     }
     if (((uint)index) >= ((uint)s.Length))
     {
         throw new ArgumentOutOfRangeException(nameof(index));
     }
     return(CharUnicodeInfo.GetNumericValueInternal(s, index));
 }
Beispiel #2
0
        public static double GetNumericValue(string s, int index)
        {
            if (s == null)
            {
                ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
            }
            if (((uint)index) >= ((uint)s.Length))
            {
                ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
            }

            return(CharUnicodeInfo.GetNumericValueInternal(s, index));
        }