Table of Contents

Struct BlobReaderContext

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

Provides a context in which a metadata blob parser exists in. This includes the original module reader context as well as a mechanism to protect against infinite recursion.

public struct BlobReaderContext
Inherited Members

Constructors

BlobReaderContext(ModuleReaderContext)

Creates a new instance of the BlobReaderContext structure.

public BlobReaderContext(ModuleReaderContext readerContext)

Parameters

readerContext ModuleReaderContext

The original read context.

BlobReaderContext(ModuleReaderContext, ITypeSignatureResolver)

Creates a new instance of the BlobReaderContext structure.

public BlobReaderContext(ModuleReaderContext readerContext, ITypeSignatureResolver resolver)

Parameters

readerContext ModuleReaderContext

The original read context.

resolver ITypeSignatureResolver

The object responsible for resolving raw type metadata tokens and addresses.

Properties

ReaderContext

Gets the module reader context.

public readonly ModuleReaderContext ReaderContext { get; }

Property Value

ModuleReaderContext

TypeSignatureResolver

Gets the object responsible for resolving raw type metadata tokens and addresses.

public readonly ITypeSignatureResolver TypeSignatureResolver { get; }

Property Value

ITypeSignatureResolver

Methods

StepInToken(MetadataToken)

Records a step in the blob reading process where a metadata token into the tables stream is about to be traversed.

public bool StepInToken(MetadataToken token)

Parameters

token MetadataToken

The token to traverse

Returns

bool

true if this token was recorded, false if the token was already traversed before.

StepOutToken()

Records a step in the blob reading process where the last recorded metadata token into the tables stream was traversed and processed completely.

public void StepOutToken()

Exceptions

InvalidOperationException

Occurs when there was no token traversed.