I have a string that has numbers
string sNumbers = \"1,2,3,4,5\";
I can split it then convert it to List
List
It is also possible to int array to direct assign value.
like this
int[] numbers = sNumbers.Split(',').Select(Int32.Parse).ToArray();