StringManipulation.SubstringBeforeLastOrSelf 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 SubstringBeforeLastOrSelf(this string text, char separator)Parameters
Returns
- string
- The part of the substring before the last occurrence of the separator character or the entire string if the separator is not found.
