StringExtensions.RemoveTrailing Method

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

RemoveTrailing(string, string, StringComparison?)

Removes trailing text from a string.

public static string RemoveTrailing(this string original, string trailing, StringComparison? comparisonType = default(StringComparison? ))

Parameters

original
string

The string to remove from.

trailing
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 trailing text removed.