摘要: Type t = typeof(TestAttribute); object[] attributes = t.GetCustomAttributes(false); foreach (var attr in attributes) { if (attr.GetType() == typeof(LogInfoAttribute)) { LogInfoAttribute att = (LogInfoAttribute)attr; ... 阅读全文
posted @ 2013-07-25 09:58 刘文天 阅读(152) 评论(0) 推荐(0) 编辑