how to make a list of an objects properties 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();