C# Class PERWAPI.ClassRef

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

Protected Properties

Property Type Description
resScopeIx uint
scope ReferenceScope

Public Methods

Method 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

Method 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 method

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

AddMethod() public method

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
return MethodRef

AddMethod() public method

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
return MethodRef

AddNestedClass() public method

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

AddVarArgMethod() public method

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
return MethodRef

AddVarArgMethod() public method

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
return MethodRef

GetField() public method

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

GetFields() public method

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

GetMethod() public method

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

GetMethod() public method

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

GetMethod() public method

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
return MethodRef

GetMethods() public method

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

GetMethods() public method

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

GetNestedClass() public method

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

GetParent() public method

public GetParent ( ) : MetaDataElement
return MetaDataElement

GetScope() public method

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

MakeExported() public method

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

Property Details

resScopeIx protected_oe property

protected uint resScopeIx
return uint

scope protected_oe property

protected ReferenceScope,PERWAPI scope
return ReferenceScope