Click or drag to resize

StringAlgorithms.SplitQuoted 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: System.String
Input string
separator
Type: System.Char
Separator character
quotechar
Type: System.Char
String quote character
options (Optional)
Type: System.StringSplitOptions
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