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))); }
public static double GetNumericValue(char ch) { return(CharUnicodeInfo.InternalGetNumericValue((int)ch)); }