StringManipulation.SubstringBeforeLast Method
- Namespace
- Kampute.DocToolkit.Support
- Assembly
- Kampute.DocToolkit.dll
Definition
Returns the section of a string before the last occurrence of the specified character.
public static string SubstringBeforeLast(this string text, char separator)Parameters
Returns
- string
- The part of the substring before the last occurrence of the separator character or the an empty string if the separator is not found.
