c# convert list string to list object code example
Example 1: string to list c#
var names = "Brian,Joe,Chris";
List<string> result = names.Split(',').ToList();
Example 2: c# object list to joined string
using System.Linq
string.Join(",", people.Select(x => x.surname))