Method TrimEnd
TrimEnd(StringBuilder)
Removes all trailing whitespace from builder.
Declaration
public static StringBuilder TrimEnd(this StringBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.StringBuilder | builder | The System.Text.StringBuilder to remove trailing whitespace from. |
Returns
| Type | Description |
|---|---|
| System.Text.StringBuilder | A reference to |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
TrimEnd(StringBuilder, Char[])
Removes all trailing characters in builder that exist within trimChars.
Declaration
public static StringBuilder TrimEnd(this StringBuilder builder, params char[] trimChars)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.StringBuilder | builder | The System.Text.StringBuilder to remove trailing characters from. |
| System.Char[] | trimChars | An array of System.Char representing the characters to be removed. |
Returns
| Type | Description |
|---|---|
| System.Text.StringBuilder | A reference to |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |