c#모든 클래스 필드 목록 가져 오기
using System.Reflection;
FieldInfo[] property_infos = typeof(Player).GetFields();
c#객체 목록의 속성 목록
List<string> firstNames = people.Select(person => person.FirstName).ToList();
c#모든 클래스 필드 목록 가져 오기
// List the properties.
// Use the class you want to study instead of Form1.
PropertyInfo[] property_infos = typeof(Form1).GetProperties(
BindingFlags.FlattenHierarchy |
BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public |
BindingFlags.Static);