Class CilInstructionLabel
- Namespace
- AsmResolver.PE.DotNet.Cil
- Assembly
- AsmResolver.PE.dll
Represents a label that references an instruction by its instruction object in a CIL method body.
public class CilInstructionLabel : ICilLabel, IEquatable<ICilLabel>
- Inheritance
-
CilInstructionLabel
- Implements
- Inherited Members
Constructors
CilInstructionLabel()
Creates a new instruction label thar references no instruction yet.
public CilInstructionLabel()
CilInstructionLabel(CilInstruction)
Creates a new instruction label.
public CilInstructionLabel(CilInstruction instruction)
Parameters
instruction
CilInstructionThe instruction to reference.
Properties
Instruction
Gets or sets the referenced instruction.
public CilInstruction? Instruction { get; set; }
Property Value
Offset
Gets the offset of the referenced instruction.
public int Offset { get; }
Property Value
Methods
Equals(ICilLabel?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ICilLabel? other)
Parameters
other
ICilLabelAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.