Click or drag to resize

imbSciStringExtensionsSplitOnce Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Splits the String by specified needle just ONCE. Needle is not included

Namespace:  imbSCI.Data
Assembly:  imbSCI.Data (in imbSCI.Data.dll) Version: 0.3.70.
Syntax
C#
public static List<string> SplitOnce(
	this string target,
	string needle
)
Request Example View Source

Parameters

target
Type: SystemString
The target.
needle
Type: SystemString
The needle.

Return Value

Type: ListString
List with one (if no needle found, original string) or two strings (if needle found, left and right substrings

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also