Method TrimStart
TrimStart(StringBuilder)
Removes all leading whitespace from builder.
Declaration
public static StringBuilder TrimStart(this StringBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.StringBuilder | builder | The System.Text.StringBuilder to remove leading whitespace from. |
Returns
| Type | Description |
|---|---|
| System.Text.StringBuilder | A reference to |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
TrimStart(StringBuilder, Char[])
Removes all leading characters in builder that exist within trimChars.
Declaration
public static StringBuilder TrimStart(this StringBuilder builder, params char[] trimChars)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.StringBuilder | builder | The System.Text.StringBuilder to remove leading 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 |