Method MatchLdtoken
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
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
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
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
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
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.