I have a string that has numbers
string sNumbers = \"1,2,3,4,5\";
I can split it then convert it to List
List
On Unity3d, int.Parse doesn't work well. So I use like bellow.
int.Parse
List intList = new List( Array.ConvertAll(sNumbers.Split(','), new Converter((s)=>{return Convert.ToInt32(s);}) ) );
Hope this help for Unity3d Users.