convert string to list of objects c# code example
Example 1: convert object to list of objects c#
IList collection = (IList)myObject;
Example 2: c# object list to joined string
using System.Linq
string.Join(",", people.Select(x => x.surname))
IList collection = (IList)myObject;
using System.Linq
string.Join(",", people.Select(x => x.surname))