Table of Contents

Interface ISortedMetadataTableBuffer<TKey, TRow>

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

Provides members for constructing a new metadata table.

public interface ISortedMetadataTableBuffer<TKey, TRow> : IMetadataTableBuffer where TRow : struct, IMetadataRow

Type Parameters

TKey

The type of members that are assigned new metadata rows.

TRow

The type of rows the table stores.

Inherited Members

Methods

Add(TKey, in TRow)

Adds a row to the metadata table.

void Add(TKey originalMember, in TRow row)

Parameters

originalMember TKey

The original member that was assigned a new metadata row.

row TRow

The row to add.

GetMembers()

Gets all the members that were added to the buffer.

IEnumerable<TKey> GetMembers()

Returns

IEnumerable<TKey>

The added members.

GetNewToken(TKey)

Gets the new metadata token that was assigned to the member.

MetadataToken GetNewToken(TKey member)

Parameters

member TKey

The member.

Returns

MetadataToken

The new metadata token.

Sort()

Sorts the metadata table buffer, and determines all new metadata tokens of the added members.

void Sort()