csharp get list of all class fields

Code Example - csharp get list of all class fields

                
                        using System.Reflection;

FieldInfo[] property_infos = typeof(Player).GetFields();
                    
                
 

csharp list of properties from list of objects

                        
                                List<string> firstNames = people.Select(person => person.FirstName).ToList();