// These are analogs of APIs on System.Char public static double GetNumericValue(Rune value) { if (value.IsAscii) { uint baseNum = value._value - '0'; return((baseNum <= 9) ? (double)baseNum : -1); } else { // not an ASCII char; fall back to globalization table return(CharUnicodeInfo.InternalGetNumericValue(value.Value)); } }