SyntaxFix
Write A Post
Hire A Developer
Questions
Use Split() function to slice them and ToList() to return them as a list.
var names = "Brian,Joe,Chris"; List<string> nameList = names.Split(',').ToList();