Determines whether the character at the specified position in the specified string is a number.
true if the character at position index in s is a member of one of the following categories in System.Globalization.UnicodeCategory: System.Globalization.UnicodeCategory.DecimalDigitNumber, System.Globalization.UnicodeCategory.LetterNumber, or System.Globalization.UnicodeCategory.OtherNumber; otherwise, false .
Type Reason ArgumentNullException s is a null reference. ArgumentOutOfRangeException The value of index is less than zero, or greater than or equal to the length of s.
Note: char.IsNumber(char) determines if a char is of any numeric Unicode category. This contrasts with char.IsDigit(char), which determines if a char is a radix-10 digit.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0