Table of Contents

Method MatchLdtoken

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

MatchLdtoken(Instruction, out IMetadataTokenProvider)

Matches an instruction with opcode Ldtoken.
public static bool MatchLdtoken(this Instruction instr, out IMetadataTokenProvider value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.

MatchLdtoken(Instruction, IMetadataTokenProvider)

Matches an instruction with opcode Ldtoken.
public static bool MatchLdtoken(this Instruction instr, IMetadataTokenProvider value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.

MatchLdtoken(Instruction, Type)

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

MatchLdtoken<T>(Instruction)

Matches an instruction with opcode Ldtoken.
public static bool MatchLdtoken<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.

MatchLdtoken(Instruction, FieldInfo)

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

MatchLdtoken(Instruction, MethodBase)

Matches an instruction with opcode Ldtoken.
public static bool MatchLdtoken(this Instruction instr, MethodBase value)

Parameters

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

Returns

bool
true if the instruction matches; false otherwise.