<PackageReference Include="System.Reflection.Metadata" Version="11.0.0" />

System.Reflection.Metadata.Ecma335.MetadataReaderExtensions

public static class MetadataReaderExtensions
Provides extension methods for working with certain raw elements of the ECMA-335 metadata tables and heaps.

Enumerates entries of EnC log.

Enumerates entries of EnC map.

public static int GetHeapMetadataOffset(this MetadataReader reader, HeapIndex heapIndex)

Returns the offset from the start of metadata to the specified heap.

public static int GetHeapSize(this MetadataReader reader, HeapIndex heapIndex)

Returns the size of the specified heap.

Returns the a handle to the UserString that follows the given one in the UserString heap or a nil handle if it is the last one.

public static BlobHandle GetNextHandle(this MetadataReader reader, BlobHandle handle)

Returns the handle to the Blob that follows the given one in the Blob heap or a nil handle if it is the last one.

public static StringHandle GetNextHandle(this MetadataReader reader, StringHandle handle)

Returns the a handle to the string that follows the given one in the string heap, or a nil handle if it is the last one.

public static int GetTableMetadataOffset(this MetadataReader reader, TableIndex tableIndex)

Returns the offset from the start of metadata to the specified table.

public static int GetTableRowCount(this MetadataReader reader, TableIndex tableIndex)

Returns the number of rows in the specified table.

public static int GetTableRowSize(this MetadataReader reader, TableIndex tableIndex)

Returns the size of a row in the specified table.

Enumerate types that define one or more events.

Enumerate types that define one or more properties.

public static SignatureTypeKind ResolveSignatureTypeKind(this MetadataReader reader, EntityHandle typeHandle, byte rawTypeKind)

Given a type handle and a raw type kind found in a signature blob determines whether the target type is a value type or a reference type.