MetadataReaderExtensions.GetHeapMetadataOffset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the offset from the start of metadata to the specified heap.
public:
[System::Runtime::CompilerServices::Extension]
static int GetHeapMetadataOffset(System::Reflection::Metadata::MetadataReader ^ reader, System::Reflection::Metadata::Ecma335::HeapIndex heapIndex);
public static int GetHeapMetadataOffset (this System.Reflection.Metadata.MetadataReader reader, System.Reflection.Metadata.Ecma335.HeapIndex heapIndex);
static member GetHeapMetadataOffset : System.Reflection.Metadata.MetadataReader * System.Reflection.Metadata.Ecma335.HeapIndex -> int
<Extension()>
Public Function GetHeapMetadataOffset (reader As MetadataReader, heapIndex As HeapIndex) As Integer
Parameters
- reader
- MetadataReader
- heapIndex
- HeapIndex
Returns
Exceptions
reader
is null
.
heapIndex
is not a valid heap index.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.