I have a string has numbers
string sNumbers = "1,2,3,4,5";
Split it then Convert To List
sNumbers.Split( new[] { ',' } ).ToList<int>();
How can i convert string array to integer list?
So i need to convert string[] to IEnumerable ...
I have a string has numbers
string sNumbers = "1,2,3,4,5";
Split it then Convert To List
sNumbers.Split( new[] { ',' } ).ToList<int>();
How can i convert string array to integer list?
So i need to convert string[] to IEnumerable ...