Table of Contents

Method MatchLdflda

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

MatchLdflda(Instruction, out FieldReference)

Matches an instruction with opcode Ldflda.
public static bool MatchLdflda(this Instruction instr, out FieldReference value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.

MatchLdflda(Instruction, FieldReference)

Matches an instruction with opcode Ldflda.
public static bool MatchLdflda(this Instruction instr, FieldReference value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.

MatchLdflda(Instruction, FieldInfo)

Matches an instruction with opcode Ldflda.
public static bool MatchLdflda(this Instruction instr, FieldInfo value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.

MatchLdflda(Instruction, Type, string)

Matches an instruction with opcode Ldflda.
public static bool MatchLdflda(this Instruction instr, Type type, string name)

Parameters

instr Instruction
The instruction to try to match.
type Type
The type the operand member must be defined on for the instruction to match.
name string
The name that the operand member must have for the instruction to match.

Returns

bool
true if the instruction matches; false otherwise.

MatchLdflda<T>(Instruction, string)

Matches an instruction with opcode Ldflda.
public static bool MatchLdflda<T>(this Instruction instr, string name)

Parameters

instr Instruction
The instruction to try to match.
name string
The name that the operand member must have for the instruction to match.

Returns

bool
true if the instruction matches; false otherwise.

Type Parameters

T
The type the operand member must be defined on for the instruction to match.

MatchLdflda(Instruction, string, string)

Matches an instruction with opcode Ldflda.
public static bool MatchLdflda(this Instruction instr, string typeFullName, string name)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.