StringManipulation.SubstringAfterLast Method

Namespace
Kampute.DocToolkit.Support
Assembly
  • Kampute.DocToolkit.dll

Definition

Returns the section of a string after the last occurrence of the specified character.
public static string SubstringAfterLast(this string text, char separator)

Parameters

text string
The string to process.
separator char
The separator character.

Returns

string
The part of the substring after the last occurrence of the separator character or the an empty string if the separator is not found.