摘要:
Type t=typeof(MyClass); object[] myobj= t.GetCustomAttributes(typeof (CodeReviewAttribute),false); foreach (Attribute a in myobj) { if (a is CodeReviewAttribute) { string abc = ((CodeReviewAttribute)a).Reviewer; //得到类上的自定义属性 } } PropertyInfo[] memberInfo = t.GetProperties(); foreach (PropertyInfo va 阅读全文
posted @ 2011-03-21 14:02
笨笨在成长
阅读(327)
评论(0)
推荐(0)
2011年3月21日