What I am trying to do is convert a string to a List of strings using linq. I try the following line of code:
value = "one,two,three,four";
List<string> arr = value.Split(',').Select(s => s.ToList());
But I am getting the error:
Error 1 Cannot implicitly convert type 'System.Collections.Generic.IEnumerable>' to 'System.Collections.Generic.List'. An explicit conversion exists (are you missing a cast?)
If anyone could provide some help that would be awesome.