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

Index int

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

Instruction CilInstruction

The matched CIL instruction.

Properties

Index

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

public int Index { get; init; }

Property Value

int

Instruction

The matched CIL instruction.

public CilInstruction Instruction { get; init; }

Property Value

CilInstruction

Methods

Deconstruct(out int, out CilInstruction)

public void Deconstruct(out int Index, out CilInstruction Instruction)

Parameters

Index int
Instruction CilInstruction

Equals(InstructionMatch)

public bool Equals(InstructionMatch other)

Parameters

other InstructionMatch

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 ==(InstructionMatch, InstructionMatch)

public static bool operator ==(InstructionMatch left, InstructionMatch right)

Parameters

left InstructionMatch
right InstructionMatch

Returns

bool

operator !=(InstructionMatch, InstructionMatch)

public static bool operator !=(InstructionMatch left, InstructionMatch right)

Parameters

left InstructionMatch
right InstructionMatch

Returns

bool