Table of Contents

Struct BlobSerializationContext

Namespace
AsmResolver.DotNet.Signatures
Assembly
AsmResolver.DotNet.dll

Describes a context in which a blob signature is to be serialized in.

public readonly struct BlobSerializationContext
Inherited Members

Constructors

BlobSerializationContext(BinaryStreamWriter, ModuleDefinition, ITypeCodedIndexProvider, IErrorListener, object?)

Creates a new instance of the BlobSerializationContext class.

public BlobSerializationContext(BinaryStreamWriter writer, ModuleDefinition contextModule, ITypeCodedIndexProvider indexProvider, IErrorListener errorListener, object? diagnosticSource)

Parameters

writer BinaryStreamWriter

The output stream to write the raw data to.

contextModule ModuleDefinition

The context module to assume the blob is serialized in.

indexProvider ITypeCodedIndexProvider

The object responsible for obtaining coded indices to types.

errorListener IErrorListener

The object responsible for collecting diagnostic information during the serialization process.

diagnosticSource object

When available, the object that is reported in diagnostics when serialization of the blob fails.

Properties

ContextModule

Gets the module that is assumed the final blob is stored in.

public ModuleDefinition ContextModule { get; }

Property Value

ModuleDefinition

DiagnosticSource

When available, gets the object that is reported in diagnostics when serialization of the blob fails.

public object? DiagnosticSource { get; }

Property Value

object

ErrorListener

Gets the bag used to collect diagnostic information during the serialization process.

public IErrorListener ErrorListener { get; }

Property Value

IErrorListener

IndexProvider

Gets the object responsible for obtaining coded indices to types.

public ITypeCodedIndexProvider IndexProvider { get; }

Property Value

ITypeCodedIndexProvider

Writer

Gets the output stream to write the raw data to.

public BinaryStreamWriter Writer { get; }

Property Value

BinaryStreamWriter