Table of Contents

Method MatchLdelema

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

MatchLdelema(Instruction, out TypeReference)

Matches an instruction with opcode Ldelema.
public static bool MatchLdelema(this Instruction instr, out TypeReference value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.

MatchLdelema(Instruction, TypeReference)

Matches an instruction with opcode Ldelema.
public static bool MatchLdelema(this Instruction instr, TypeReference value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.

MatchLdelema(Instruction, Type)

Matches an instruction with opcode Ldelema.
public static bool MatchLdelema(this Instruction instr, Type value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.

MatchLdelema<T>(Instruction)

Matches an instruction with opcode Ldelema.
public static bool MatchLdelema<T>(this Instruction instr)

Parameters

instr Instruction
The instruction to try to match.

Returns

bool
true if the instruction matches; false otherwise.

Type Parameters

T
The type that must be the instruction operand for the instruction to match.

MatchLdelema(Instruction, string)

Matches an instruction with opcode Ldelema.
public static bool MatchLdelema(this Instruction instr, string typeFullName)

Parameters

instr Instruction
The instruction to try to match.
typeFullName string
The full name of the type that must be the instruction operand for the instruction to match.

Returns

bool
true if the instruction matches; false otherwise.