I have a string that has numbers
string sNumbers = \"1,2,3,4,5\";
I can split it then convert it to List
List
You can also do it this way without the need of Linq:
List numbers = new List( Array.ConvertAll(sNumbers.Split(','), int.Parse) ); // Uses Linq var numbers = Array.ConvertAll(sNumbers.Split(','), int.Parse).ToList();