Struct InstructionMatch
- Namespace
- AsmLocator
- Assembly
- AsmLocator.dll
Represents a matched instruction and its index in the method instruction collection at search time.
public readonly struct InstructionMatch : IEquatable<InstructionMatch>
- Implements
- Inherited Members
Constructors
InstructionMatch(int, CilInstruction)
Represents a matched instruction and its index in the method instruction collection at search time.
public InstructionMatch(int Index, CilInstruction Instruction)
Parameters
IndexintThe zero-based instruction index at the time of the search.
InstructionCilInstructionThe matched CIL instruction.
Properties
Index
The zero-based instruction index at the time of the search.
public int Index { get; init; }
Property Value
Instruction
The matched CIL instruction.
public CilInstruction Instruction { get; init; }
Property Value
Methods
Deconstruct(out int, out CilInstruction)
public void Deconstruct(out int Index, out CilInstruction Instruction)
Parameters
IndexintInstructionCilInstruction
Equals(InstructionMatch)
public bool Equals(InstructionMatch other)
Parameters
otherInstructionMatch
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(InstructionMatch, InstructionMatch)
public static bool operator ==(InstructionMatch left, InstructionMatch right)
Parameters
leftInstructionMatchrightInstructionMatch
Returns
operator !=(InstructionMatch, InstructionMatch)
public static bool operator !=(InstructionMatch left, InstructionMatch right)
Parameters
leftInstructionMatchrightInstructionMatch