Click or drag to resize

StringAlgorithmsSplitQuoted Method

Method to split a string that may contain quote characters for substrings.

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static string[] SplitQuoted(
	this string input,
	char separator,
	char quotechar,
	StringSplitOptions options = StringSplitOptions.None
)

Parameters

input
Type: SystemString
Input string
separator
Type: SystemChar
Separator character
quotechar
Type: SystemChar
String quote character
options (Optional)
Type: SystemStringSplitOptions
Flag to omit empty substrings

Return Value

Type: String
Array of 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