Table of Contents

Method MatchLdcI4

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

MatchLdcI4(Instruction, out int)

Matches an instruction with opcode Ldc_I4.
public static bool MatchLdcI4(this Instruction instr, out int value)

Parameters

instr Instruction
The instruction to try to match.
value int
The operand value of the instruction.

Returns

bool
true if the instruction matches; false otherwise.

MatchLdcI4(Instruction, int)

Matches an instruction with opcode Ldc_I4.
public static bool MatchLdcI4(this Instruction instr, int value)

Parameters

instr Instruction
The instruction to try to match.
value int
The operand value required for the instruction to match.

Returns

bool
true if the instruction matches; false otherwise.

MatchLdcI4(Instruction, uint)

Matches an instruction with opcode Ldc_I4.
public static bool MatchLdcI4(this Instruction instr, uint value)

Parameters

instr Instruction
The instruction to try to match.
value uint
The operand value required for the instruction to match.

Returns

bool
true if the instruction matches; false otherwise.