StringExtensions.RemoveLeading Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

RemoveLeading(string, string, StringComparison?)

Removes leading text from a string.

public static string RemoveLeading(this string original, string leading, StringComparison? comparisonType = default(StringComparison? ))

Parameters

original
string

The string to remove from.

leading
string

The string to remove.

comparisonType
System.StringComparison?

One of the enumeration values that determines how strings are compared.

Returns

string

A string with the leading text removed.