Answers for "how to inisialitation list of object c#"

C#
2

c# initialize list of objects

List<Cat> moreCats = new List<Cat>
{
    new Cat{ Name = "Furrytail", Age=5 },
    new Cat{ Name = "Peaches", Age=4 },
    null
};
Posted by: Guest on August-21-2020
3

c# list of properties from list of objects

List<string> firstNames = people.Select(person => person.FirstName).ToList();
Posted by: Guest on May-11-2020

Code answers related to "how to inisialitation list of object c#"

C# Answers by Framework

Browse Popular Code Answers by Language