Mono Class Library: System.Char Overview | Members

System.Char.IsWhiteSpace Method

Determines whether the character at the specified position in the specified string is a whitespace character.

public static bool IsWhiteSpace (string s, int index)

Parameters

s
A string.
index
A int that specifies a character position in s.
index
Documentation for this section has not yet been entered.

Returns

true if the character at position index in s either has a code point of 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x0085, 0x2028, or 0x2029; or is a member of the following category in System.Globalization.UnicodeCategory: System.Globalization.UnicodeCategory.SpaceSeparator; otherwise, false.

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

Documentation for this section has not yet been entered.

Requirements

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