Class ImportedModule
- Namespace
- AsmResolver.PE.Imports
- Assembly
- AsmResolver.PE.dll
Represents a single module that was imported into a portable executable as part of the imports data directory. Each instance represents one entry in the imports directory.
public class ImportedModule
- Inheritance
-
ImportedModule
- Derived
- Inherited Members
Constructors
ImportedModule()
Creates a new empty module import.
protected ImportedModule()
ImportedModule(string)
Creates a new module import.
public ImportedModule(string name)
Parameters
name
stringThe name of the module to import.
Properties
ForwarderChain
Gets or sets the index of the first member that is a forwarder.
public uint ForwarderChain { get; set; }
Property Value
Name
Gets or sets the name of the module that was imported.
public string? Name { get; set; }
Property Value
Symbols
Gets a collection of members from the module that were imported.
public IList<ImportedSymbol> Symbols { get; }
Property Value
TimeDateStamp
Gets or sets the time stamp that the module was loaded into memory.
public uint TimeDateStamp { get; set; }
Property Value
Remarks
This field is always 0 if the PE was read from the disk.
Methods
FromReader(PEReaderContext, ref BinaryStreamReader)
Reads a single module import entry from an input stream.
public static ImportedModule? FromReader(PEReaderContext context, ref BinaryStreamReader reader)
Parameters
context
PEReaderContextThe reader context.
reader
BinaryStreamReaderThe input stream to read from.
Returns
GetSymbols()
Obtains the collection of members that were imported.
protected virtual IList<ImportedSymbol> GetSymbols()
Returns
- IList<ImportedSymbol>
The members list.
Remarks
This method is called to initialize the value of Symbols property.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.