Namespace: Assorted.Utils.Text
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Overload | Description |
---|---|
SubstringBefore(this string, char) | Retrieves a substring from this instance. The substring starts at the beginning of the string and continues until the first occurrence of a specified Unicode character. |
SubstringBefore(this string, string) | Retrieves a substring from this instance. The substring starts at the beginning of the string and continues until the first occurrence of a specified string. |
Retrieves a substring from this instance. The substring starts at the beginning of the string and continues until the first occurrence of a specified Unicode character.
public static string SubstringBefore(this string source, char value)
source
: string
The source string.
value
: char
A Unicode character to seek.
string
A substring of the original string if the value
is found; otherwise, null
.
Retrieves a substring from this instance. The substring starts at the beginning of the string and continues until the first occurrence of a specified string.
public static string SubstringBefore(this string source, string value)
source
: string
The source string.
value
: string
A string to seek.
string
A substring of the original string if the value
is found; otherwise, null
.
This document is generated by DG.