摘要: using System.Reflection; Type t = obj.GetType();//获得该类的Type foreach (PropertyInfo pi in t.GetProperties()) { var name = pi.Name;//获得属性的名字,后面就可以根据名字判断来 阅读全文
posted @ 2022-09-07 15:41 BloggerSb 阅读(794) 评论(0) 推荐(0)