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

StartIndex int

The zero-based index of the first matched instruction at search time.

Instructions IReadOnlyList<CilInstruction>

The instructions in the matched sequence.

Properties

Instructions

The instructions in the matched sequence.

public IReadOnlyList<CilInstruction> Instructions { get; init; }

Property Value

IReadOnlyList<CilInstruction>

StartIndex

The zero-based index of the first matched instruction at search time.

public int StartIndex { get; init; }

Property Value

int

Methods

Deconstruct(out int, out IReadOnlyList<CilInstruction>)

public void Deconstruct(out int StartIndex, out IReadOnlyList<CilInstruction> Instructions)

Parameters

StartIndex int
Instructions IReadOnlyList<CilInstruction>

Equals(InstructionSequence?)

public bool Equals(InstructionSequence? other)

Parameters

other InstructionSequence

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(InstructionSequence?, InstructionSequence?)

public static bool operator ==(InstructionSequence? left, InstructionSequence? right)

Parameters

left InstructionSequence
right InstructionSequence

Returns

bool

operator !=(InstructionSequence?, InstructionSequence?)

public static bool operator !=(InstructionSequence? left, InstructionSequence? right)

Parameters

left InstructionSequence
right InstructionSequence

Returns

bool