Table of Contents

Interface IDotNetDirectoryFactory

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

Provides members for constructing a .NET data directory that can be inserted into a PEImage.

public interface IDotNetDirectoryFactory

Methods

CreateDotNetDirectory(ModuleDefinition, INativeSymbolsProvider, IErrorListener)

Constructs a .NET data directory based on the provided .NET module.

DotNetDirectoryBuildResult CreateDotNetDirectory(ModuleDefinition module, INativeSymbolsProvider symbolsProvider, IErrorListener errorListener)

Parameters

module ModuleDefinition

The module to serialize to a .NET data directory.

symbolsProvider INativeSymbolsProvider

The object responsible for providing references to native symbols.

errorListener IErrorListener

The listener that is used to collect all diagnostic information during the building process.

Returns

DotNetDirectoryBuildResult

The serialized data directory.

Exceptions

MetadataBuilderException

Occurs when the metadata builder encounters an error.