Determines whether the specified character is a punctuation mark.
[Visual Basic] Public Shared Function IsPunctuation( _ ByVal c As Char _ ) As Boolean [C#] public static bool IsPunctuation( char c ); [C++] public: static bool IsPunctuation( __wchar_t c ); [JScript] public static function IsPunctuation( c : Char ) : Boolean;
true if the character is a punctuation mark, otherwise false.
Exception Type | Condition |
---|---|
ArgumentException | if it cannot get the character type information. |
The IsPunctuation method compares the current character instance with IsPunctuation and returns a true or false indication whether the character that was checked is lowercase. (See CharacterInfo.)