Extensions.SplitList(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A string extension method that splits a list.
public static string[] SplitList (this string str, string separator = ";", string escape = "__semi");
static member SplitList : string * string * string -> string[]
<Extension()>
Public Function SplitList (str As String, Optional separator As String = ";", Optional escape As String = "__semi") As String()
Parameters
- str
- String
The str to act on.
- separator
- String
The separator character between elements in a string list.
- escape
- String
The escape string for separator characters.
Returns
String[]
A string[].