c# extract list of properties from list of objects code example
Example: c# list of properties from list of objects
List<string> firstNames = people.Select(person => person.FirstName).ToList();
List<string> firstNames = people.Select(person => person.FirstName).ToList();