Mono Class Library: System.String Overview | Members

System.String.Trim Method

Removes all occurrences of a set of characters provided in a character Array from the beginning and end of the current instance.

public string Trim (params char[] trimChars)

Parameters

trimChars
An array of Unicode characters. Can be a null reference.

Returns

A new string equivalent to the current instance with the characters in trimChars removed from its beginning and end. If trimChars is a null reference, all of the white space characters are removed from the beginning and end of the current instance.

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