C# 클래스 PERWAPI.ClassRef

Descriptor for a class/interface declared in another module of THIS assembly, or in another assembly.
상속: ClassDesc
파일 보기 프로젝트 열기: xored/f4 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
resScopeIx uint
scope ReferenceScope

공개 메소드들

메소드 설명
AddField ( string name, Type fType ) : FieldRef

Add a field to this class

AddMethod ( string name, GenericParam genPars, Type retType, Type pars ) : MethodRef

Add a method to this class

AddMethod ( string name, Type retType, Type pars ) : MethodRef

Add a method to this class

AddNestedClass ( string name ) : NestedClassRef

Add a nested class to this class

AddVarArgMethod ( string name, GenericParam genPars, Type retType, Type pars, Type optPars ) : MethodRef

Add a method to this class

AddVarArgMethod ( string name, Type retType, Type pars, Type optPars ) : MethodRef

Add a method to this class

GetField ( string name ) : FieldRef

Get the descriptor for the field "name" for this class

GetFields ( ) : PERWAPI.FieldRef[]

Get all the fields for this class

GetMethod ( string name ) : MethodRef

Get the method "name" for this class

GetMethod ( string name, Type parTypes ) : MethodRef

Get the method "name(parTypes)" for this class

GetMethod ( string name, Type parTypes, Type optTypes ) : MethodRef

Get the vararg method "name(parTypes,optTypes)" for this class

GetMethods ( ) : PERWAPI.MethodRef[]

Get all the methods for this class

GetMethods ( string name ) : PERWAPI.MethodRef[]

Get the descriptors for the all methods name "name" for this class

GetNestedClass ( string name ) : NestedClassRef

Get the nested class "name"

GetParent ( ) : MetaDataElement
GetScope ( ) : ReferenceScope

Get the scope or "parent" of this ClassRef (either ModuleRef or AssemblyRef)

MakeExported ( ) : void

Make this Class exported from an Assembly (ie. add to ExportedType table)

비공개 메소드들

메소드 설명
AddField ( FieldRef fld ) : void
AddMethod ( MethodRef meth ) : void
BuildCILInfo ( CILWriter output ) : void
BuildTables ( MetaDataOut md ) : void
ClassName ( ) : string
ClassRef ( ReferenceScope scope, string nsName, string name ) : System
ClassRef ( uint scopeIx, string nsName, string name ) : System
GetCodedIx ( CIx code ) : uint
HasParent ( uint tok ) : bool
NameString ( ) : string
Read ( PEReader buff, TableRow typeRefs, bool resolve ) : void
ReadClass ( PEReader buff, ReferenceScope resScope ) : ClassRef
ReadDef ( PEReader buff, ReferenceScope resScope, uint index ) : ClassRef
ResolveParent ( PEReader buff, bool isExtern ) : void
SetExternClass ( ExternClass eClass ) : void
SetScope ( ReferenceScope scope ) : void
Size ( MetaData md ) : uint
TypeDefOrRefToken ( ) : uint
Write ( PEWriter output ) : void
WriteType ( CILWriter output ) : void

메소드 상세

AddField() 공개 메소드

Add a field to this class
public AddField ( string name, Type fType ) : FieldRef
name string field name
fType Type field type
리턴 FieldRef

AddMethod() 공개 메소드

Add a method to this class
public AddMethod ( string name, GenericParam genPars, Type retType, Type pars ) : MethodRef
name string method name
genPars GenericParam generic parameters
retType Type return type
pars Type parameter types
리턴 MethodRef

AddMethod() 공개 메소드

Add a method to this class
public AddMethod ( string name, Type retType, Type pars ) : MethodRef
name string method name
retType Type return type
pars Type parameter types
리턴 MethodRef

AddNestedClass() 공개 메소드

Add a nested class to this class
public AddNestedClass ( string name ) : NestedClassRef
name string Nested class name
리턴 NestedClassRef

AddVarArgMethod() 공개 메소드

Add a method to this class
public AddVarArgMethod ( string name, GenericParam genPars, Type retType, Type pars, Type optPars ) : MethodRef
name string method name
genPars GenericParam generic parameters
retType Type return type
pars Type parameter types
optPars Type optional parameter types
리턴 MethodRef

AddVarArgMethod() 공개 메소드

Add a method to this class
public AddVarArgMethod ( string name, Type retType, Type pars, Type optPars ) : MethodRef
name string method name
retType Type return type
pars Type parameter types
optPars Type optional parameter types
리턴 MethodRef

GetField() 공개 메소드

Get the descriptor for the field "name" for this class
public GetField ( string name ) : FieldRef
name string Field name
리턴 FieldRef

GetFields() 공개 메소드

Get all the fields for this class
public GetFields ( ) : PERWAPI.FieldRef[]
리턴 PERWAPI.FieldRef[]

GetMethod() 공개 메소드

Get the method "name" for this class
public GetMethod ( string name ) : MethodRef
name string The method name
리턴 MethodRef

GetMethod() 공개 메소드

Get the method "name(parTypes)" for this class
public GetMethod ( string name, Type parTypes ) : MethodRef
name string Method name
parTypes Type Method signature
리턴 MethodRef

GetMethod() 공개 메소드

Get the vararg method "name(parTypes,optTypes)" for this class
public GetMethod ( string name, Type parTypes, Type optTypes ) : MethodRef
name string Method name
parTypes Type Method parameter types
optTypes Type Optional parameter types
리턴 MethodRef

GetMethods() 공개 메소드

Get all the methods for this class
public GetMethods ( ) : PERWAPI.MethodRef[]
리턴 PERWAPI.MethodRef[]

GetMethods() 공개 메소드

Get the descriptors for the all methods name "name" for this class
public GetMethods ( string name ) : PERWAPI.MethodRef[]
name string Method name
리턴 PERWAPI.MethodRef[]

GetNestedClass() 공개 메소드

Get the nested class "name"
public GetNestedClass ( string name ) : NestedClassRef
name string Nestec class name
리턴 NestedClassRef

GetParent() 공개 메소드

public GetParent ( ) : MetaDataElement
리턴 MetaDataElement

GetScope() 공개 메소드

Get the scope or "parent" of this ClassRef (either ModuleRef or AssemblyRef)
public GetScope ( ) : ReferenceScope
리턴 ReferenceScope

MakeExported() 공개 메소드

Make this Class exported from an Assembly (ie. add to ExportedType table)
public MakeExported ( ) : void
리턴 void

프로퍼티 상세

resScopeIx 보호되어 있는 프로퍼티

protected uint resScopeIx
리턴 uint

scope 보호되어 있는 프로퍼티

protected ReferenceScope,PERWAPI scope
리턴 ReferenceScope