public class Person { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } }
I have a list:
List<Person> list = new List<Person>();
I would like to get the Id value of all entries in a comma separated list, for example: id1, id2, id3
source share