list properties c# code example
Example 1: to list c#
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();
Example 2: c# list of properties from list of objects
List<string> firstNames = people.Select(person => person.FirstName).ToList();