how to create a list property c# code example
Example 1: c# new list object
var intList = new List<int>();
Example 2: c# list of properties from list of objects
List<string> firstNames = people.Select(person => person.FirstName).ToList();
var intList = new List<int>();
List<string> firstNames = people.Select(person => person.FirstName).ToList();