 | ConversionStringToStringList Method |
Create a List of string from a string
Namespace: ToolBooxAssembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic static List<string> StringToStringList(
string list,
char separator,
bool allowDuplicates
)
Public Shared Function StringToStringList (
list As String,
separator As Char,
allowDuplicates As Boolean
) As List(Of String)
Parameters
- list
- Type: SystemString
String object with list of string (es: "name,lastname,address") - separator
- Type: SystemChar
Separator to use (es: ',') - allowDuplicates
- Type: SystemBoolean
The returned list contains duplicated values or not
Return Value
Type:
ListStringReturned list of string objects
See Also