NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Char.IsLetterOrDigit

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;

Parameters

c
The character to examine.

Return Value

true if the character is an alphabetic or numeric character, otherwise false.

Exceptions

Exception Type Condition
ArgumentException if it cannot get the character type information.

Remarks

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.

See Also

Char Structure | Char Members | System Namespace | Boolean | CharacterInfo | Encoding | UnicodeEncoding