InternalGetNumericValue() static private method

static private InternalGetNumericValue ( int ch ) : double
ch int
return double
コード例 #1
0
 public static double GetNumericValue(string s, int index)
 {
     if (s == null)
     {
         throw new ArgumentNullException("s");
     }
     if (index < 0 || index >= s.Length)
     {
         throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
     }
     return(CharUnicodeInfo.InternalGetNumericValue(CharUnicodeInfo.InternalConvertToUtf32(s, index)));
 }
コード例 #2
0
 public static double GetNumericValue(char ch)
 {
     return(CharUnicodeInfo.InternalGetNumericValue((int)ch));
 }