5 char[] chars
= new char[]
6 {'0', 'F', 'f', 'x', '1', 'n', 'a'}
;
7 bool[] results
= new bool[]
8 {true, false, false, false, true, false, false}
;
10 for (int i
= 0; i
< chars
.Length
; ++i
) {
11 if (Char
.IsNumber (chars
[i
]) != results
[i
]) {
12 Console
.WriteLine ("Char '{0}' failed", chars
[i
]);