System.Reflection;
User { id; Id { { id; } { id = value; } } name; Name { { name; } { name = value; } } }
PropertyInfo[] GetPropertyInfoArray() { PropertyInfo[] props = ; { Type type = (User); obj = Activator.CreateInstance(type); props = type.GetProperties(BindingFlags.Public | BindingFlags.Instance); } (Exception ex) { } props; }