Method MatchLdtoken
MatchLdtoken(Instruction, out IMetadataTokenProvider)
Matches an instruction with opcode Ldtoken.
public static bool MatchLdtoken(this Instruction instr, out IMetadataTokenProvider value)
Parameters
instrInstruction- The instruction to try to match.
 valueIMetadataTokenProvider- 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
instrInstruction- The instruction to try to match.
 valueIMetadataTokenProvider- 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
instrInstruction- The instruction to try to match.
 valueType- 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
instrInstruction- 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
instrInstruction- The instruction to try to match.
 valueFieldInfo- 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
instrInstruction- The instruction to try to match.
 valueMethodBase- The operand value required for the instruction to match.