Table of Contents

Method Match

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

Match(Instruction, OpCode)

Matches an instruction with the given opcode
public static bool Match(this Instruction instr, OpCode opcode)

Parameters

instr Instruction
The instruction to try to match.
opcode OpCode
The instruction opcode to match.

Returns

bool
true if the instruction matches; false otherwise.

Match<T>(Instruction, OpCode, T)

Matches an instruction with the given opcode
public static bool Match<T>(this Instruction instr, OpCode opcode, T value)

Parameters

instr Instruction
The instruction to try to match.
opcode OpCode
The instruction opcode to match.
value T
The operand value of the instruction.

Returns

bool
true if the instruction matches; false otherwise.

Type Parameters

T

Match<T>(Instruction, OpCode, out T)

Matches an instruction with the given opcode
public static bool Match<T>(this Instruction instr, OpCode opcode, out T value)

Parameters

instr Instruction
The instruction to try to match.
opcode OpCode
The instruction opcode to match.
value T
The operand value of the instruction.

Returns

bool
true if the instruction matches; false otherwise.

Type Parameters

T