Struct LocalScopeRow
- Namespace
- AsmResolver.PE.DotNet.Metadata.Tables
- Assembly
- AsmResolver.PE.dll
Represents a single row in the Portable PDB local scope metadata table.
public struct LocalScopeRow : IMetadataRow, IReadOnlyList<uint>, IReadOnlyCollection<uint>, IEnumerable<uint>, IEnumerable, IEquatable<LocalScopeRow>
- Implements
- Inherited Members
Constructors
LocalScopeRow(uint, uint, uint, uint, uint, uint)
Creates a new row for the Portable PDB Local Scope metadata table.
public LocalScopeRow(uint method, uint importScope, uint variableList, uint constantList, uint startOffset, uint length)
Parameters
methoduintAn index into the method table that defines the scope.
importScopeuintAn index into the import scope table that defines the scope.
variableListuintAn index into the local variable table referencing the first local variable in the method.
constantListuintAn index into the local constant table referencing the first constant in the method.
startOffsetuintThe starting CIL offset of the scope.
lengthuintThe number of CIL bytes the scope spans.
Properties
ConstantList
Gets or sets an index into the local constant table referencing the first constant in the method.
public uint ConstantList { readonly get; set; }
Property Value
Count
public int Count { get; }
Property Value
ImportScope
Gets or sets an index into the import scope table that defines the scope.
public uint ImportScope { readonly get; set; }
Property Value
this[int]
public uint this[int index] { get; }
Parameters
indexint
Property Value
Length
Gets or sets the number of CIL bytes the scope spans.
public uint Length { readonly get; set; }
Property Value
Method
Gets or sets an index into the method table that defines the scope.
public uint Method { readonly get; set; }
Property Value
StartOffset
Gets or sets The starting CIL offset of the scope.
public uint StartOffset { 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
VariableList
Gets or sets an index into the local variable table referencing the first local variable in the method.
public uint VariableList { readonly get; set; }
Property Value
Methods
Equals(LocalScopeRow)
public bool Equals(LocalScopeRow other)
Parameters
otherLocalScopeRow
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
FromReader(ref BinaryStreamReader, TableLayout)
Reads a single Portable PDB local scope row from an input stream.
public static LocalScopeRow FromReader(ref BinaryStreamReader reader, TableLayout layout)
Parameters
readerBinaryStreamReaderThe input stream.
layoutTableLayoutThe layout of the local socpe table.
Returns
- LocalScopeRow
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 ==(LocalScopeRow, LocalScopeRow)
Determines whether two rows are considered equal.
public static bool operator ==(LocalScopeRow left, LocalScopeRow right)
Parameters
leftLocalScopeRowrightLocalScopeRow
Returns
operator !=(LocalScopeRow, LocalScopeRow)
Determines whether two rows are not considered equal.
public static bool operator !=(LocalScopeRow left, LocalScopeRow right)
Parameters
leftLocalScopeRowrightLocalScopeRow