c# object list attribute to string code example
Example: c# object list attribute to string
List<string> firstNames = people.Select(person => person.FirstName).ToList();
List<string> firstNames = people.Select(person => person.FirstName).ToList();