Class InstructionSequence
- Namespace
- AsmLocator
- Assembly
- AsmLocator.dll
Represents a contiguous sequence of CIL instructions matching an instruction pattern.
public sealed record InstructionSequence : IEquatable<InstructionSequence>
- Inheritance
-
InstructionSequence
- Implements
- Inherited Members
Constructors
InstructionSequence(int, IReadOnlyList<CilInstruction>)
Represents a contiguous sequence of CIL instructions matching an instruction pattern.
public InstructionSequence(int StartIndex, IReadOnlyList<CilInstruction> Instructions)
Parameters
StartIndexintThe zero-based index of the first matched instruction at search time.
InstructionsIReadOnlyList<CilInstruction>The instructions in the matched sequence.
Properties
Instructions
The instructions in the matched sequence.
public IReadOnlyList<CilInstruction> Instructions { get; init; }
Property Value
StartIndex
The zero-based index of the first matched instruction at search time.
public int StartIndex { get; init; }
Property Value
Methods
Deconstruct(out int, out IReadOnlyList<CilInstruction>)
public void Deconstruct(out int StartIndex, out IReadOnlyList<CilInstruction> Instructions)
Parameters
StartIndexintInstructionsIReadOnlyList<CilInstruction>
Equals(InstructionSequence?)
public bool Equals(InstructionSequence? other)
Parameters
otherInstructionSequence
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 ==(InstructionSequence?, InstructionSequence?)
public static bool operator ==(InstructionSequence? left, InstructionSequence? right)
Parameters
leftInstructionSequencerightInstructionSequence
Returns
operator !=(InstructionSequence?, InstructionSequence?)
public static bool operator !=(InstructionSequence? left, InstructionSequence? right)
Parameters
leftInstructionSequencerightInstructionSequence