I have a string that has numbers
string sNumbers = \"1,2,3,4,5\";
I can split it then convert it to List
List
Joze's way also need LINQ, ToList() is in System.Linq namespace.
ToList()
System.Linq
You can convert Array to List without Linq by passing the array to List constructor:
List numbers = new List( Array.ConvertAll(sNumbers.Split(','), int.Parse) );