StringExtensions.RemoveTrailing Method

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

RemoveTrailing(String, String, NullableComparison>)

Removes trailing text from a string.

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

Parameters

original
System.String
trailing
System.String
comparisonType
System.Nullable{System.StringComparison}

Returns

System.String

A string with the trailing text removed.