自定义特性
1.AttributeUsage特性:主要用于标识自定义特性可以应用到哪些类型的程序集上去,其类型是枚举类型AttributeTargets
AttributeTargets的枚举成员如下:1.all,Assembly,class,constructor,delegate,enum,event,field,interface,methord,module,parameter,property,struct
Type类
type的属性
1.许多属性可以获取包含与类相关的各种名称的字符串
name:数据类型名 Fullname:数据类型完全限定名 Namespace:名称空间名
2.布尔属性表示类型是一个类,还是一个枚举类
isAbstarct,IsAarry等等
方法
Type的方法获取对应数据类型的成员信息:构造函数、属性、方法和事件
1.GetMehtod():对象的一个引用
2.GetMethods():引用的一个数组