BrianM
12/14/2002 3:29:00 PM
When I read the doc for the Char.IsNumber() method it says:
"Indicates whether the specified Unicode character is categorized as a
decimal digit or hexadecimal number."
So I would think that it is a direct replacement for the old trustworthy C
routine isxdigit() and that it would return true for 0-9, a-f, and A-F.
However, when I do the following:
bool b1 = Char.IsNumber('d');
bool b2 = Char.IsNumber('D');
bool b3 = Char.IsNumber('5');
I get b1 = false, b2 = false, b3 = true.
It's a little scary that something this simple hasn't been discovered by
service pack 2 .