摘要: var attributes = typeof(MyClass).GetCustomAttributes(typeof(TestAttribute), true); //MyClass 表示引用特性的类 TestAttribute特性定义的类 foreach (var attribute in at 阅读全文
posted @ 2017-08-15 15:34 ■乐 阅读(156) 评论(0) 推荐(0) 编辑