System.Char.IsLetterOrDigit Method

Indicates whether the specified Unicode character is categorized as a letter or a decimal digit.

Syntax

public static bool IsLetterOrDigit (char c)

Parameters

c
The Unicode character to evaluate.

Returns

true if c is a letter or a decimal digit; otherwise, false.

Remarks

Valid letters and decimal digits are members of the following categories in System.Globalization.UnicodeCategory: UppercaseLetter, LowercaseLetter, TitlecaseLetter, ModifierLetter, OtherLetter, or DecimalDigitNumber.

Requirements

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