Class ModuleReaderParameters
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Provides parameters for the reading process of a .NET module.
public class ModuleReaderParameters
- Inheritance
-
ModuleReaderParameters
- Inherited Members
Constructors
ModuleReaderParameters()
Initializes the default module read parameters.
public ModuleReaderParameters()
ModuleReaderParameters(RuntimeContext)
Initializes the module read parameters with a file service.
public ModuleReaderParameters(RuntimeContext context)
Parameters
contextRuntimeContextThe context the module should be read in.
ModuleReaderParameters(ModuleReaderParameters)
Clones the provided module reader parameters.
public ModuleReaderParameters(ModuleReaderParameters readerParameters)
Parameters
readerParametersModuleReaderParametersThe parameters to clone.
ModuleReaderParameters(IErrorListener)
Initializes the module read parameters with an error listener.
public ModuleReaderParameters(IErrorListener errorListener)
Parameters
errorListenerIErrorListenerThe object responsible for recording parser errors.
ModuleReaderParameters(IFileService)
Initializes the module read parameters with a file service.
public ModuleReaderParameters(IFileService fileService)
Parameters
fileServiceIFileServiceThe file service to use when reading the file and dependencies.
ModuleReaderParameters(string?)
Initializes the module read parameters with a working directory.
public ModuleReaderParameters(string? workingDirectory)
Parameters
workingDirectorystringThe working directory of the modules to read.
ModuleReaderParameters(string?, IErrorListener)
Initializes the module read parameters with a working directory.
public ModuleReaderParameters(string? workingDirectory, IErrorListener errorListener)
Parameters
workingDirectorystringThe working directory of the modules to read.
errorListenerIErrorListenerThe object responsible for recording parser errors.
ModuleReaderParameters(string?, PEReaderParameters)
Initializes the module read parameters with a working directory.
public ModuleReaderParameters(string? workingDirectory, PEReaderParameters readerParameters)
Parameters
workingDirectorystringThe working directory of the modules to read.
readerParametersPEReaderParametersThe parameters to use while reading the assembly and its dependencies.
Properties
FieldRvaDataReader
Gets or sets the field initial value reader.
public IFieldRvaDataReader FieldRvaDataReader { get; set; }
Property Value
MethodBodyReader
Gets or sets the method body parser.
public IMethodBodyReader MethodBodyReader { get; set; }
Property Value
ModuleResolver
Gets or sets the object used for resolving a net module.
public INetModuleResolver? ModuleResolver { get; set; }
Property Value
PEReaderParameters
Gets or sets the parameters used for parsing a PE file into a PE image.
public PEReaderParameters PEReaderParameters { get; set; }
Property Value
Remarks
This property is ignored when the module was read from a PEImage
RuntimeContext
Gets or sets the runtime context to load the module in, or null if a new context is to be created.
public RuntimeContext? RuntimeContext { get; set; }
Property Value
WorkingDirectory
Gets the working directory of the module to read.
public string? WorkingDirectory { get; }