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

System.Reflection.Metadata.PEReaderExtensions

public static class PEReaderExtensions
public static MetadataReader GetMetadataReader(this PEReader peReader)

Gets a MetadataReader from a PEReader.

public static MetadataReader GetMetadataReader(this PEReader peReader, MetadataReaderOptions options)

Gets a metadata reader with the specified metadata reading configuration from a PEReader.

public static MetadataReader GetMetadataReader(this PEReader peReader, MetadataReaderOptions options, MetadataStringDecoder utf8Decoder)

Gets a metadata reader with the specified metadata reading configuration and encoding configuration from a PEReader.

public static MethodBodyBlock GetMethodBody(this PEReader peReader, int relativeVirtualAddress)

Returns a body block of a method with the specified Relative Virtual Address (RVA).