Table of Contents

Struct MethodImplementationRow

Namespace
AsmResolver.PE.DotNet.Metadata.Tables
Assembly
AsmResolver.PE.dll

Represents a single row in the method implementation metadata table.

public struct MethodImplementationRow : IMetadataRow, IReadOnlyList<uint>, IReadOnlyCollection<uint>, IEnumerable<uint>, IEnumerable, IEquatable<MethodImplementationRow>
Implements
Inherited Members

Constructors

MethodImplementationRow(uint, uint, uint)

Creates a new row for the method implementation metadata table.

public MethodImplementationRow(uint @class, uint methodBody, uint methodDeclaration)

Parameters

class uint

The index into the TypeDef table indicating the class that inherited methods from an interface.

methodBody uint

The MethodDefOrRef index indicating the method which provides the implementation for the interface method.

methodDeclaration uint

The MethodDefOrRef index indicating the interface method which is implemented.

Properties

Class

Gets or sets an index into the TypeDef table indicating the class that inherited methods from an interface.

public uint Class { readonly get; set; }

Property Value

uint

Count

public int Count { get; }

Property Value

int

this[int]

public uint this[int index] { get; }

Parameters

index int

Property Value

uint

MethodBody

Gets a MethodDefOrRef index (an index into either the Method or MemberRef table) indicating the method which provides the implementation for the interface method.

public uint MethodBody { readonly get; set; }

Property Value

uint

MethodDeclaration

Gets a MethodDefOrRef index (an index into either the Method or MemberRef table) indicating the interface method which is implemented.

public uint MethodDeclaration { readonly get; set; }

Property Value

uint

TableIndex

Gets or sets the index of the table that this row is stored in.

public TableIndex TableIndex { get; }

Property Value

TableIndex

Methods

Equals(MethodImplementationRow)

public bool Equals(MethodImplementationRow other)

Parameters

other MethodImplementationRow

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

FromReader(ref BinaryStreamReader, TableLayout)

Reads a single method implementation row from an input stream.

public static MethodImplementationRow FromReader(ref BinaryStreamReader reader, TableLayout layout)

Parameters

reader BinaryStreamReader

The input stream.

layout TableLayout

The layout of the method implementation table.

Returns

MethodImplementationRow

The row.

GetEnumerator()

public IEnumerator<uint> GetEnumerator()

Returns

IEnumerator<uint>

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Write(BinaryStreamWriter, TableLayout)

Writes the row to an output stream.

public void Write(BinaryStreamWriter writer, TableLayout layout)

Parameters

writer BinaryStreamWriter

The output stream writer.

layout TableLayout

The new layout of the table.

Operators

operator ==(MethodImplementationRow, MethodImplementationRow)

Determines whether two rows are considered equal.

public static bool operator ==(MethodImplementationRow left, MethodImplementationRow right)

Parameters

left MethodImplementationRow
right MethodImplementationRow

Returns

bool

operator !=(MethodImplementationRow, MethodImplementationRow)

Determines whether two rows are not considered equal.

public static bool operator !=(MethodImplementationRow left, MethodImplementationRow right)

Parameters

left MethodImplementationRow
right MethodImplementationRow

Returns

bool