Property | Type | Description | |
---|---|---|---|
_customProperties | List |
Method | Description | |
---|---|---|
AddProperty ( string name ) : void |
增加一个属性,类型为string
|
|
AddProperty ( string name, |
增加一个属性,类型为给的值
|
|
AddProperty ( string name, |
增加一个属性,除名称及类型外,还有声明,不太常用
|
|
CustomType ( |
用基础类型构造用户类型。
|
|
GetConstructors ( BindingFlags bindingAttr ) : System.Reflection.ConstructorInfo[] | ||
GetCustomAttributes ( |
||
GetCustomAttributes ( bool inherit ) : object[] | ||
GetElementType ( ) : |
||
GetEvent ( string name, BindingFlags bindingAttr ) : |
||
GetEvents ( BindingFlags bindingAttr ) : System.Reflection.EventInfo[] | ||
GetField ( string name, BindingFlags bindingAttr ) : |
||
GetFields ( BindingFlags bindingAttr ) : System.Reflection.FieldInfo[] | ||
GetInterface ( string name, bool ignoreCase ) : |
||
GetInterfaces ( ) : System.Type[] | ||
GetMembers ( BindingFlags bindingAttr ) : System.Reflection.MemberInfo[] | ||
GetMethods ( BindingFlags bindingAttr ) : System.Reflection.MethodInfo[] | ||
GetNestedType ( string name, BindingFlags bindingAttr ) : |
||
GetNestedTypes ( BindingFlags bindingAttr ) : System.Type[] | ||
GetProperties ( BindingFlags bindingAttr ) : System.Reflection.PropertyInfo[] |
获得所有属性信息,包括clr属性以及自定义属性。
|
|
InvokeMember ( string name, BindingFlags invokeAttr, |
||
IsDefined ( |
Method | Description | |
---|---|---|
GetAttributeFlagsImpl ( ) : TypeAttributes | ||
GetConstructorImpl ( BindingFlags bindingAttr, |
||
GetMethodImpl ( string name, BindingFlags bindingAttr, |
||
GetPropertyImpl ( string name, BindingFlags bindingAttr, |
实际获取某个属性的属性信息的实现过程。
|
|
HasElementTypeImpl ( ) : bool | ||
IsArrayImpl ( ) : bool | ||
IsByRefImpl ( ) : bool | ||
IsCOMObjectImpl ( ) : bool | ||
IsPointerImpl ( ) : bool | ||
IsPrimitiveImpl ( ) : bool |
Method | Description | |
---|---|---|
CheckIfNameExists ( string name ) : bool |
检查属性是否存在,以避免重复添加属性。如果属性已经存在,将抛出属性名存在异常。
|
public AddProperty ( string name, |
||
name | string | 属性名 |
propertyType | 属性类型 | |
return | void |
public AddProperty ( string name, |
||
name | string | 属性名 |
propertyType | 属性类型 | |
attributes | List |
声明 |
return | void |
public CustomType ( |
||
delegatingType | 基础类型 | |
return | System |
protected GetAttributeFlagsImpl ( ) : TypeAttributes | ||
return | TypeAttributes |
protected GetConstructorImpl ( BindingFlags bindingAttr, |
||
bindingAttr | BindingFlags | |
binder | ||
callConvention | CallingConventions | |
types | ||
modifiers | ||
return |
public GetConstructors ( BindingFlags bindingAttr ) : System.Reflection.ConstructorInfo[] | ||
bindingAttr | BindingFlags | |
return | System.Reflection.ConstructorInfo[] |
public GetCustomAttributes ( |
||
attributeType | ||
inherit | bool | |
return | object[] |
public GetCustomAttributes ( bool inherit ) : object[] | ||
inherit | bool | |
return | object[] |
public GetEvent ( string name, BindingFlags bindingAttr ) : |
||
name | string | |
bindingAttr | BindingFlags | |
return |
public GetEvents ( BindingFlags bindingAttr ) : System.Reflection.EventInfo[] | ||
bindingAttr | BindingFlags | |
return | System.Reflection.EventInfo[] |
public GetField ( string name, BindingFlags bindingAttr ) : |
||
name | string | |
bindingAttr | BindingFlags | |
return |
public GetFields ( BindingFlags bindingAttr ) : System.Reflection.FieldInfo[] | ||
bindingAttr | BindingFlags | |
return | System.Reflection.FieldInfo[] |
public GetInterface ( string name, bool ignoreCase ) : |
||
name | string | |
ignoreCase | bool | |
return |
public GetMembers ( BindingFlags bindingAttr ) : System.Reflection.MemberInfo[] | ||
bindingAttr | BindingFlags | |
return | System.Reflection.MemberInfo[] |
protected GetMethodImpl ( string name, BindingFlags bindingAttr, |
||
name | string | |
bindingAttr | BindingFlags | |
binder | ||
callConvention | CallingConventions | |
types | ||
modifiers | ||
return |
public GetMethods ( BindingFlags bindingAttr ) : System.Reflection.MethodInfo[] | ||
bindingAttr | BindingFlags | |
return | System.Reflection.MethodInfo[] |
public GetNestedType ( string name, BindingFlags bindingAttr ) : |
||
name | string | |
bindingAttr | BindingFlags | |
return |
public GetNestedTypes ( BindingFlags bindingAttr ) : System.Type[] | ||
bindingAttr | BindingFlags | |
return | System.Type[] |
public GetProperties ( BindingFlags bindingAttr ) : System.Reflection.PropertyInfo[] | ||
bindingAttr | BindingFlags | 未知 |
return | System.Reflection.PropertyInfo[] |
protected GetPropertyImpl ( string name, BindingFlags bindingAttr, |
||
name | string | 属性名 |
bindingAttr | BindingFlags | 未知 |
binder | 未知 | |
returnType | 未知 | |
types | 未知 | |
modifiers | 未知 | |
return |
public InvokeMember ( string name, BindingFlags invokeAttr, |
||
name | string | |
invokeAttr | BindingFlags | |
binder | ||
target | object | |
args | object | |
modifiers | ||
culture | System | |
namedParameters | string | |
return | object |
public IsDefined ( |
||
attributeType | ||
inherit | bool | |
return | bool |