Class ModuleReaderContext
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Provides a context in which a .NET module parser exists in. This includes the original PE image, as well as the module reader parameters.
public class ModuleReaderContext : IErrorListener
- Inheritance
-
ModuleReaderContext
- Implements
- Inherited Members
Constructors
ModuleReaderContext(PEImage, SerializedModuleDefinition, ModuleReaderParameters)
Creates a new instance of the ModuleReaderContext class.
public ModuleReaderContext(PEImage image, SerializedModuleDefinition parentModule, ModuleReaderParameters parameters)
Parameters
imagePEImageThe original PE image to read from.
parentModuleSerializedModuleDefinitionThe root module object.
parametersModuleReaderParametersThe module reader parameters.
Properties
Image
Gets the original PE image to read from.
public PEImage Image { get; }
Property Value
Metadata
Gets the original metadata directory.
public MetadataDirectory Metadata { get; }
Property Value
Parameters
Gets the reader parameters.
public ModuleReaderParameters Parameters { get; }
Property Value
ParentModule
Gets the root module object that is being read.
public SerializedModuleDefinition ParentModule { get; }
Property Value
Streams
Gets the streams that are used to read the metadata.
public MetadataStreamSelection Streams { get; }
Property Value
Methods
MarkAsFatal()
Marks the process to have failed.
public void MarkAsFatal()
RegisterException(Exception)
Registers an error.
public void RegisterException(Exception exception)
Parameters
exceptionExceptionThe error.