Mono Class Library: System.Char Overview | Members

System.Char.IsPunctuation Method

Determines whether the character at the specified position in the specified string is a punctuation mark. [Edit]

public static bool IsPunctuation (string s, int index)

Parameters

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

Returns

true if the character at position index in s is a member of one of the following categories in System.Globalization.UnicodeCategory: System.Globalization.UnicodeCategory.ConnectorPunctuation, System.Globalization.UnicodeCategory.DashPunctuation, System.Globalization.UnicodeCategory.OpenPunctuation, System.Globalization.UnicodeCategory.ClosePunctuation, System.Globalization.UnicodeCategory.InitialQuotePunctuation, System.Globalization.UnicodeCategory.FinalQuotePunctuation, or System.Globalization.UnicodeCategory.OtherPunctuation; otherwise, false. [Edit]

Exceptions

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

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

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