Table of Contents

Class PEImageBuildResult

Namespace
AsmResolver.DotNet.Builder
Assembly
AsmResolver.DotNet.dll

Describes the result of the construction of a PEImage from a ModuleDefinition.

public class PEImageBuildResult
Inheritance
PEImageBuildResult
Inherited Members

Constructors

PEImageBuildResult(PEImage?, DiagnosticBag, ITokenMapping)

Creates a new instance of the PEImageBuildResult class.

[Obsolete]
public PEImageBuildResult(PEImage? image, DiagnosticBag diagnosticBag, ITokenMapping tokenMapping)

Parameters

image PEImage

The constructed image, or null if the construction failed.

diagnosticBag DiagnosticBag

The diagnostics that were collected during the construction of the image.

tokenMapping ITokenMapping

An object that maps metadata members to their newly assigned tokens.

PEImageBuildResult(PEImage?, IErrorListener, ITokenMapping)

Creates a new instance of the PEImageBuildResult class.

public PEImageBuildResult(PEImage? image, IErrorListener errorListener, ITokenMapping tokenMapping)

Parameters

image PEImage

The constructed image, or null if the construction failed.

errorListener IErrorListener

The diagnostics that were collected during the construction of the image.

tokenMapping ITokenMapping

An object that maps metadata members to their newly assigned tokens.

Properties

ConstructedImage

Gets the constructed image, or null if the construction failed.

public PEImage? ConstructedImage { get; }

Property Value

PEImage

DiagnosticBag

Gets the bag containing the diagnostics that were collected during the construction of the image (if available).

[Obsolete("Use the ErrorListener property instead.")]
public DiagnosticBag? DiagnosticBag { get; }

Property Value

DiagnosticBag

ErrorListener

Gets the error listener handling the diagnostics that were collected during the construction of the image.

public IErrorListener ErrorListener { get; }

Property Value

IErrorListener

HasFailed

Gets a value indicating whether the image was constructed successfully or not.

public bool HasFailed { get; }

Property Value

bool

TokenMapping

Gets an object that maps metadata members to their newly assigned tokens.

public ITokenMapping TokenMapping { get; }

Property Value

ITokenMapping