Answers for "get list of properties from a single object c#"

C#
5

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

c# get list of all class fields

using System.Reflection;

FieldInfo[] property_infos = typeof(Player).GetFields();
Posted by: Guest on April-08-2020

Code answers related to "get list of properties from a single object c#"

C# Answers by Framework

Browse Popular Code Answers by Language