在C#如何遍历一个对象的所有属性

PropertyInfo[]   propertys   =   new    myClass().GetType().GetProperties();  
即可获得对象myClass的所有属性组成的集合 propertys 
posted @ 2008-07-16 09:13  Winner.Net(2007)  阅读(3324)  评论(0编辑  收藏  举报