Struct GenericParameterRow
- Namespace
- AsmResolver.PE.DotNet.Metadata.Tables
- Assembly
- AsmResolver.PE.dll
Represents a single row in the generic parameter metadata table.
public struct GenericParameterRow : IMetadataRow, IReadOnlyList<uint>, IReadOnlyCollection<uint>, IEnumerable<uint>, IEnumerable, IEquatable<GenericParameterRow>
- Implements
- Inherited Members
Constructors
GenericParameterRow(ushort, GenericParameterAttributes, uint, uint)
Creates a new row for the generic parameter metadata table.
public GenericParameterRow(ushort number, GenericParameterAttributes attributes, uint owner, uint name)
Parameters
numberushortattributesGenericParameterAttributesowneruintnameuint
Properties
Attributes
Gets or sets the attributes associated to the generic parameter.
public GenericParameterAttributes Attributes { readonly get; set; }
Property Value
Count
public int Count { get; }
Property Value
this[int]
public uint this[int index] { get; }
Parameters
indexint
Property Value
Name
Gets or sets an index into the #Strings stream referencing the name of the generic parameter.
public uint Name { readonly get; set; }
Property Value
Number
Gets or sets the index of the generic parameter.
public ushort Number { readonly get; set; }
Property Value
Owner
Gets a TypeOrMethodDef index (an index into either the TypeDef or MethodDef table) indicating the owner of the generic parameter.
public uint Owner { 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(GenericParameterRow)
public bool Equals(GenericParameterRow other)
Parameters
otherGenericParameterRow
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
FromReader(ref BinaryStreamReader, TableLayout)
Reads a single generic parameter row from an input stream.
public static GenericParameterRow FromReader(ref BinaryStreamReader reader, TableLayout layout)
Parameters
readerBinaryStreamReaderThe input stream.
layoutTableLayoutThe layout of the generic parameter table.
Returns
- GenericParameterRow
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 ==(GenericParameterRow, GenericParameterRow)
Determines whether two rows are considered equal.
public static bool operator ==(GenericParameterRow left, GenericParameterRow right)
Parameters
leftGenericParameterRowrightGenericParameterRow
Returns
operator !=(GenericParameterRow, GenericParameterRow)
Determines whether two rows are not considered equal.
public static bool operator !=(GenericParameterRow left, GenericParameterRow right)
Parameters
leftGenericParameterRowrightGenericParameterRow