Determines whether the specified character is a letter or a digit.
[Visual Basic] Public Shared Function IsLetterOrDigit( _ ByVal c As Char _ ) As Boolean [C#] public static bool IsLetterOrDigit( char c ); [C++] public: static bool IsLetterOrDigit( __wchar_t c ); [JScript] public static function IsLetterOrDigit( c : Char ) : Boolean;
true if the character is an alphabetic or numeric character, otherwise false.
Exception Type | Condition |
---|---|
ArgumentException | if it cannot get the character type information. |
The IsLetterOrDigit method compares the current character instance with the Unicode category and returns a true or false indication whether the character that was checked is a letter or number.
Char Structure | Char Members | System Namespace | Boolean | CharacterInfo | Encoding | UnicodeEncoding