Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 2.52 KB

Assorted.Utils.Text.StringExtensions.SubstringBefore.md

File metadata and controls

69 lines (43 loc) · 2.52 KB

StringExtensions.SubstringBefore Method

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.

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.

Syntax

public static string SubstringBefore(this string source, char value)

Parameters

source: string
The source string.

value: char
A Unicode character to seek.

Return Value

string
A substring of the original string if the value is found; otherwise, null.

See Also

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.

Syntax

public static string SubstringBefore(this string source, string value)

Parameters

source: string
The source string.

value: string
A string to seek.

Return Value

string
A substring of the original string if the value is found; otherwise, null.

See Also


This document is generated by DG.