Mono Class Library: System.Char Overview | Members

System.Char.GetUnicodeCategory Method

Determines the System.Globalization.UnicodeCategory of the character at the specified position in the specified string .

public static System.Globalization.UnicodeCategory GetUnicodeCategory (string s, int index)

Parameters

s
A string.
index
A int that specifies the position of a character in s.

Returns

The System.Globalization.UnicodeCategory of the char at position index in s.

Exceptions

TypeReason
ArgumentNullExceptions is a null reference.
ArgumentOutOfRangeExceptionThe value of index is less than zero, or greater than or equal to the length of s.

Remarks

Note: For more information regarding Unicode categories, see System.Globalization.UnicodeCategory.

Requirements

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