Table of Contents

Class DirectoryNetModuleResolver

Namespace
AsmResolver.DotNet.Serialized
Assembly
AsmResolver.DotNet.dll

Provides a basic implementation for a net module resolver, that searches for the net module in a directory.

public class DirectoryNetModuleResolver : INetModuleResolver
Inheritance
DirectoryNetModuleResolver
Implements
Inherited Members

Constructors

DirectoryNetModuleResolver(string, ModuleReaderParameters)

Creates a new net module resolver that searches for the module in a directory.

public DirectoryNetModuleResolver(string directory, ModuleReaderParameters readerParameters)

Parameters

directory string

The path to the search directory.

readerParameters ModuleReaderParameters

The parameters to use for reading a module.

Properties

Directory

Gets the search directory.

public string Directory { get; }

Property Value

string

ReaderParameters

Gets the parameters to be used for reading a .NET module.

public ModuleReaderParameters ReaderParameters { get; }

Property Value

ModuleReaderParameters

Methods

Resolve(string)

Resolves a net module by its name.

public ModuleDefinition? Resolve(string name)

Parameters

name string

The name of the module to resolve.

Returns

ModuleDefinition

The module, or null if the module could not be resolved.