C# Class PERWAPI.ClassRef

Descriptor for a class/interface declared in another module of THIS assembly, or in another assembly.
Inheritance: ClassDesc
Afficher le fichier Open project: xored/f4 Class Usage Examples

Protected Properties

Свойство Type Description
resScopeIx uint
scope ReferenceScope

Méthodes publiques

Méthode Description
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)

Private Methods

Méthode Description
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

Method Details

AddField() public méthode

Add a field to this class
public AddField ( string name, Type fType ) : FieldRef
name string field name
fType Type field type
Résultat FieldRef

AddMethod() public méthode

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
Résultat MethodRef

AddMethod() public méthode

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
Résultat MethodRef

AddNestedClass() public méthode

Add a nested class to this class
public AddNestedClass ( string name ) : NestedClassRef
name string Nested class name
Résultat NestedClassRef

AddVarArgMethod() public méthode

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
Résultat MethodRef

AddVarArgMethod() public méthode

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
Résultat MethodRef

GetField() public méthode

Get the descriptor for the field "name" for this class
public GetField ( string name ) : FieldRef
name string Field name
Résultat FieldRef

GetFields() public méthode

Get all the fields for this class
public GetFields ( ) : PERWAPI.FieldRef[]
Résultat PERWAPI.FieldRef[]

GetMethod() public méthode

Get the method "name" for this class
public GetMethod ( string name ) : MethodRef
name string The method name
Résultat MethodRef

GetMethod() public méthode

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

GetMethod() public méthode

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
Résultat MethodRef

GetMethods() public méthode

Get all the methods for this class
public GetMethods ( ) : PERWAPI.MethodRef[]
Résultat PERWAPI.MethodRef[]

GetMethods() public méthode

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

GetNestedClass() public méthode

Get the nested class "name"
public GetNestedClass ( string name ) : NestedClassRef
name string Nestec class name
Résultat NestedClassRef

GetParent() public méthode

public GetParent ( ) : MetaDataElement
Résultat MetaDataElement

GetScope() public méthode

Get the scope or "parent" of this ClassRef (either ModuleRef or AssemblyRef)
public GetScope ( ) : ReferenceScope
Résultat ReferenceScope

MakeExported() public méthode

Make this Class exported from an Assembly (ie. add to ExportedType table)
public MakeExported ( ) : void
Résultat void

Property Details

resScopeIx protected_oe property

protected uint resScopeIx
Résultat uint

scope protected_oe property

protected ReferenceScope,PERWAPI scope
Résultat ReferenceScope