Click or drag to resize
ConversionStringToIntList Method
Create a List of int from a string

Namespace: ToolBoox
Assembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public static List<int> StringToIntList(
	string list,
	char separator,
	bool allowDuplicates
)

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: ListInt32
Returned list of int objects
See Also