c# convert string to int list code example
Example 1: string to list c#
var names = "Brian,Joe,Chris";
List<string> result = names.Split(',').ToList();
Example 2: list string to int c#
listofIDs.Select(int.Parse).ToList()
var names = "Brian,Joe,Chris";
List<string> result = names.Split(',').ToList();
listofIDs.Select(int.Parse).ToList()