Mono Class Library: System.Char Overview | Members

System.Char.IsNumber Method

Determines whether the specified Unicode character is a number. [Edit]

public static bool IsNumber (char c)

Parameters

c
A Unicode character. [Edit]

Returns

true if c 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. [Edit]

Remarks

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.
[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0