Table of Contents

Method MatchLdstr

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

MatchLdstr(Instruction, out string)

Matches an instruction with opcode Ldstr.
public static bool MatchLdstr(this Instruction instr, out string value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.

MatchLdstr(Instruction, string)

Matches an instruction with opcode Ldstr.
public static bool MatchLdstr(this Instruction instr, string value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.