如何遍历类的属性?

 using   System.Reflection;  
   
  Type   t   =   typeof(YourClass);  
  foreach   (PropertyInfo   pi   in   t.GetProperties())  
  {  
        Response.Write(pi.Name);  
  }
原文地址:https://www.cnblogs.com/star250/p/1572758.html