LeftBefore(string, string, StringComparison?)
Returns a string containing every character within a string before the
first occurrence of another string.
public static string LeftBefore(this string original, string search, StringComparison? comparisonType = default(StringComparison? ))
Required. String expression from which the leftmost characters are returned.
The string where the beginning of it marks the characters to return. If the string is not found, the whole string is returned.
Determines whether or not to use case sensitive search.
A string containing every character within the original string before the first occurrence of the search string.