Table of Contents

Method TrimStart

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

TrimStart(string, string)

Removes all occurrences of a specified substring from the beginning of the target string.

public static string TrimStart(this string target, string trimString)

Parameters

target string

Source string to process.

trimString string

The substring to remove.

Returns

string

The string that remains after all occurrences of the trimString string are removed from the start of the target string. If no string can be trimmed from the target string, the method returns the target string unchanged.