Struct EventMapRow
- Namespace
- AsmResolver.PE.DotNet.Metadata.Tables
- Assembly
- AsmResolver.PE.dll
Represents a single row in the event map metadata table.
public struct EventMapRow : IMetadataRow, IReadOnlyList<uint>, IReadOnlyCollection<uint>, IEnumerable<uint>, IEnumerable, IEquatable<EventMapRow>
- Implements
- Inherited Members
Constructors
EventMapRow(uint, uint)
Creates a new row for the event map metadata table.
public EventMapRow(uint parent, uint eventList)
Parameters
parentuintThe index into the TypeDef table that this mapping is associating to an event list.
eventListuintThe index into the Event table indicating the first event that is defined in the event list.
Properties
Count
public int Count { get; }
Property Value
EventList
Gets or sets an index into the Event table indicating the first event that is defined in the event list.
public uint EventList { readonly get; set; }
Property Value
this[int]
public uint this[int index] { get; }
Parameters
indexint
Property Value
Parent
Gets or sets an index into the TypeDef table that this mapping is associating to an event list.
public uint Parent { 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(EventMapRow)
public bool Equals(EventMapRow other)
Parameters
otherEventMapRow
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
FromReader(ref BinaryStreamReader, TableLayout)
Reads a single event map row from an input stream.
public static EventMapRow FromReader(ref BinaryStreamReader reader, TableLayout layout)
Parameters
readerBinaryStreamReaderThe input stream.
layoutTableLayoutThe layout of the event map table.
Returns
- EventMapRow
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 ==(EventMapRow, EventMapRow)
Determines whether two rows are considered equal.
public static bool operator ==(EventMapRow left, EventMapRow right)
Parameters
leftEventMapRowrightEventMapRow
Returns
operator !=(EventMapRow, EventMapRow)
Determines whether two rows are not considered equal.
public static bool operator !=(EventMapRow left, EventMapRow right)
Parameters
leftEventMapRowrightEventMapRow