C# Класс PERWAPI.ClassRef

Descriptor for a class/interface declared in another module of THIS assembly, or in another assembly.
Наследование: ClassDesc
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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