Struct MethodDebugInformationRow
- Namespace
- AsmResolver.PE.DotNet.Metadata.Tables
- Assembly
- AsmResolver.PE.dll
Represents a single row in the Portable PDB Document metadata table.
public struct MethodDebugInformationRow : IMetadataRow, IReadOnlyList<uint>, IReadOnlyCollection<uint>, IEnumerable<uint>, IEnumerable, IEquatable<MethodDebugInformationRow>
- Implements
- Inherited Members
Constructors
MethodDebugInformationRow(uint, uint)
Creates a new row for the Portable PDB Method Debug Information metadata table.
public MethodDebugInformationRow(uint document, uint sequencePoints)
Parameters
documentuintThe index into the Document table referencing the document that declares the method.
sequencePointsuintThe index into the blob stream referencing an array of sequence points that make up the method.
Properties
Count
public int Count { get; }
Property Value
Document
Gets or sets an index into the Document table referencing the document that declares the method, or 0 if the method does not have sequence points or spans multiple documents.
public uint Document { readonly get; set; }
Property Value
this[int]
public uint this[int index] { get; }
Parameters
indexint
Property Value
SequencePoints
Gets or sets an index into the blob stream referencing an array of sequence points that make up the method, or 0 if no sequence points are available.
public uint SequencePoints { 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(MethodDebugInformationRow)
public bool Equals(MethodDebugInformationRow other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
FromReader(ref BinaryStreamReader, TableLayout)
Reads a single Portable PDB Method Debug Information row from an input stream.
public static MethodDebugInformationRow FromReader(ref BinaryStreamReader reader, TableLayout layout)
Parameters
readerBinaryStreamReaderThe input stream.
layoutTableLayoutThe layout of the method debug information table.
Returns
- MethodDebugInformationRow
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 ==(MethodDebugInformationRow, MethodDebugInformationRow)
Determines whether two rows are considered equal.
public static bool operator ==(MethodDebugInformationRow left, MethodDebugInformationRow right)
Parameters
Returns
operator !=(MethodDebugInformationRow, MethodDebugInformationRow)
Determines whether two rows are not considered equal.
public static bool operator !=(MethodDebugInformationRow left, MethodDebugInformationRow right)