C# Class PERWAPI.ModuleRef

Descriptor for a module in an assembly
Inheritance: ReferenceScope
Mostrar archivo Open project: xored/f4 Class Usage Examples

Public Methods

Method Description
AddExternClass ( TypeAttr attrSet, string nsName, string name, bool isValueClass, PEFile pefile ) : ClassRef

Add a class which is declared public in this external module of THIS assembly. This class will be exported from this assembly. The ilasm syntax for this is .extern class

MakeModuleRef ( string name, bool entryPoint, byte hashValue ) : ModuleRef
SetEntryPoint ( ) : void
SetHash ( byte hashVal ) : void

Private Methods

Method Description
AddExternClass ( ExternClass eClass ) : void
AddToExportedClassList ( ClassRef exClass ) : void
BuildTables ( MetaDataOut md ) : void
GetCodedIx ( CIx code ) : uint
ModuleRef ( ModuleFile file ) : System
ModuleRef ( string name ) : System
ModuleRef ( string name, bool entryPoint, byte hashValue ) : System
Read ( PEReader buff, TableRow mods, bool resolve ) : void
Resolve ( PEReader buff ) : void
Size ( MetaData md ) : uint
Write ( PEWriter output ) : void

Method Details

AddExternClass() public method

Add a class which is declared public in this external module of THIS assembly. This class will be exported from this assembly. The ilasm syntax for this is .extern class
public AddExternClass ( TypeAttr attrSet, string nsName, string name, bool isValueClass, PEFile pefile ) : ClassRef
attrSet TypeAttr attributes of the class to be exported
nsName string name space name
name string external class name
isValueClass bool is this class a value type?
pefile PEFile
return ClassRef

MakeModuleRef() public static method

public static MakeModuleRef ( string name, bool entryPoint, byte hashValue ) : ModuleRef
name string
entryPoint bool
hashValue byte
return ModuleRef

SetEntryPoint() public method

public SetEntryPoint ( ) : void
return void

SetHash() public method

public SetHash ( byte hashVal ) : void
hashVal byte
return void