 | ConversionStringToIntList Method |
Create a List of int from a string
Namespace: ToolBooxAssembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic static List<int> StringToIntList(
string list,
char separator,
bool allowDuplicates
)
Public Shared Function StringToIntList (
list As String,
separator As Char,
allowDuplicates As Boolean
) As List(Of Integer)
Parameters
- list
- Type: SystemString
String object with list of number (es: "11,22,55,7383") - separator
- Type: SystemChar
Separator to use (es: ',') - allowDuplicates
- Type: SystemBoolean
The returned list contains duplicated values or not
Return Value
Type:
ListInt32Returned list of int objects
See Also