Table of Contents

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

image PEImage

The original PE image to read from.

parentModule SerializedModuleDefinition

The root module object.

parameters ModuleReaderParameters

The module reader parameters.

Properties

Image

Gets the original PE image to read from.

public PEImage Image { get; }

Property Value

PEImage

Metadata

Gets the original metadata directory.

public MetadataDirectory Metadata { get; }

Property Value

MetadataDirectory

Parameters

Gets the reader parameters.

public ModuleReaderParameters Parameters { get; }

Property Value

ModuleReaderParameters

ParentModule

Gets the root module object that is being read.

public SerializedModuleDefinition ParentModule { get; }

Property Value

SerializedModuleDefinition

Streams

Gets the streams that are used to read the metadata.

public MetadataStreamSelection Streams { get; }

Property Value

MetadataStreamSelection

Methods

MarkAsFatal()

Marks the process to have failed.

public void MarkAsFatal()

RegisterException(Exception)

Registers an error.

public void RegisterException(Exception exception)

Parameters

exception Exception

The error.