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