프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_customProperties | List |
메소드 | 설명 | |
---|---|---|
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 ( |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
CheckIfNameExists ( string name ) : bool |
检查属性是否存在,以避免重复添加属性。如果属性已经存在,将抛出属性名存在异常。
|
public AddProperty ( string name, |
||
name | string | 属性名 |
propertyType | 属性类型 | |
리턴 | void |
public AddProperty ( string name, |
||
name | string | 属性名 |
propertyType | 属性类型 | |
attributes | List |
声明 |
리턴 | void |
public CustomType ( |
||
delegatingType | 基础类型 | |
리턴 | System |
protected GetAttributeFlagsImpl ( ) : TypeAttributes | ||
리턴 | TypeAttributes |
protected GetConstructorImpl ( BindingFlags bindingAttr, |
||
bindingAttr | BindingFlags | |
binder | ||
callConvention | CallingConventions | |
types | ||
modifiers | ||
리턴 |
public GetConstructors ( BindingFlags bindingAttr ) : System.Reflection.ConstructorInfo[] | ||
bindingAttr | BindingFlags | |
리턴 | System.Reflection.ConstructorInfo[] |
public GetCustomAttributes ( |
||
attributeType | ||
inherit | bool | |
리턴 | object[] |
public GetCustomAttributes ( bool inherit ) : object[] | ||
inherit | bool | |
리턴 | object[] |
public GetEvent ( string name, BindingFlags bindingAttr ) : |
||
name | string | |
bindingAttr | BindingFlags | |
리턴 |
public GetEvents ( BindingFlags bindingAttr ) : System.Reflection.EventInfo[] | ||
bindingAttr | BindingFlags | |
리턴 | System.Reflection.EventInfo[] |
public GetField ( string name, BindingFlags bindingAttr ) : |
||
name | string | |
bindingAttr | BindingFlags | |
리턴 |
public GetFields ( BindingFlags bindingAttr ) : System.Reflection.FieldInfo[] | ||
bindingAttr | BindingFlags | |
리턴 | System.Reflection.FieldInfo[] |
public GetInterface ( string name, bool ignoreCase ) : |
||
name | string | |
ignoreCase | bool | |
리턴 |
public GetMembers ( BindingFlags bindingAttr ) : System.Reflection.MemberInfo[] | ||
bindingAttr | BindingFlags | |
리턴 | System.Reflection.MemberInfo[] |
protected GetMethodImpl ( string name, BindingFlags bindingAttr, |
||
name | string | |
bindingAttr | BindingFlags | |
binder | ||
callConvention | CallingConventions | |
types | ||
modifiers | ||
리턴 |
public GetMethods ( BindingFlags bindingAttr ) : System.Reflection.MethodInfo[] | ||
bindingAttr | BindingFlags | |
리턴 | System.Reflection.MethodInfo[] |
public GetNestedType ( string name, BindingFlags bindingAttr ) : |
||
name | string | |
bindingAttr | BindingFlags | |
리턴 |
public GetNestedTypes ( BindingFlags bindingAttr ) : System.Type[] | ||
bindingAttr | BindingFlags | |
리턴 | System.Type[] |
public GetProperties ( BindingFlags bindingAttr ) : System.Reflection.PropertyInfo[] | ||
bindingAttr | BindingFlags | 未知 |
리턴 | System.Reflection.PropertyInfo[] |
protected GetPropertyImpl ( string name, BindingFlags bindingAttr, |
||
name | string | 属性名 |
bindingAttr | BindingFlags | 未知 |
binder | 未知 | |
returnType | 未知 | |
types | 未知 | |
modifiers | 未知 | |
리턴 |
public InvokeMember ( string name, BindingFlags invokeAttr, |
||
name | string | |
invokeAttr | BindingFlags | |
binder | ||
target | object | |
args | object | |
modifiers | ||
culture | System | |
namedParameters | string | |
리턴 | object |
public IsDefined ( |
||
attributeType | ||
inherit | bool | |
리턴 | bool |