Table of Contents

Method MatchLdloca

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

MatchLdloca(Instruction, out int)

Matches an instruction with opcode Ldloca.
public static bool MatchLdloca(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.

MatchLdloca(Instruction, int)

Matches an instruction with opcode Ldloca or Ldloca_S.
public static bool MatchLdloca(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.

MatchLdloca(Instruction, uint)

Matches an instruction with opcode Ldloca or Ldloca_S.
public static bool MatchLdloca(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.