list item object c# code example
Example 1: C# list
List<string> myListOfStrings = new List<string>
{
"this",
"is",
"my",
"list"
};
Example 2: c# list of properties from list of objects
List<string> firstNames = people.Select(person => person.FirstName).ToList();