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
classuintThe index into the TypeDef table indicating the class that inherited methods from an interface.
methodBodyuintThe MethodDefOrRef index indicating the method which provides the implementation for the interface method.
methodDeclarationuintThe 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
Count
public int Count { get; }
Property Value
this[int]
public uint this[int index] { get; }
Parameters
indexint
Property Value
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
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
TableIndex
Gets or sets the index of the table that this row is stored in.
public TableIndex TableIndex { get; }
Property Value
Methods
Equals(MethodImplementationRow)
public bool Equals(MethodImplementationRow other)
Parameters
otherMethodImplementationRow
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
FromReader(ref BinaryStreamReader, TableLayout)
Reads a single method implementation row from an input stream.
public static MethodImplementationRow FromReader(ref BinaryStreamReader reader, TableLayout layout)
Parameters
readerBinaryStreamReaderThe input stream.
layoutTableLayoutThe layout of the method implementation table.
Returns
- MethodImplementationRow
The row.
GetEnumerator()
public IEnumerator<uint> GetEnumerator()
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Write(BinaryStreamWriter, TableLayout)
Writes the row to an output stream.
public void Write(BinaryStreamWriter writer, TableLayout layout)
Parameters
writerBinaryStreamWriterThe output stream writer.
layoutTableLayoutThe 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
leftMethodImplementationRowrightMethodImplementationRow
Returns
operator !=(MethodImplementationRow, MethodImplementationRow)
Determines whether two rows are not considered equal.
public static bool operator !=(MethodImplementationRow left, MethodImplementationRow right)
Parameters
leftMethodImplementationRowrightMethodImplementationRow