Answers for "c# list with properties"

C#
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
0

List example in c# using class objects

var students = new List<Student>() { 
                new Student(){ Id = 1, Name="Bill"},
                new Student(){ Id = 2, Name="Steve"},
                new Student(){ Id = 3, Name="Ram"},
                new Student(){ Id = 4, Name="Abdul"}
            };
Posted by: Guest on October-17-2021

Code answers related to "c# list with properties"

C# Answers by Framework

Browse Popular Code Answers by Language