Method MatchCallOrCallvirt
- Namespace
- MonoMod.Cil
- Assembly
- MonoMod.Utils.dll
MatchCallOrCallvirt(Instruction, out MethodReference)
public static bool MatchCallOrCallvirt(this Instruction instr, out MethodReference value)
Parameters
instr
Instruction
- The instruction to try to match.
value
MethodReference
- The operand value of the instruction.
Returns
- bool
- true if the instruction matches; false otherwise.
MatchCallOrCallvirt(Instruction, MethodReference)
public static bool MatchCallOrCallvirt(this Instruction instr, MethodReference value)
Parameters
instr
Instruction
- The instruction to try to match.
value
MethodReference
- The operand value required for the instruction to match.
Returns
- bool
- true if the instruction matches; false otherwise.
MatchCallOrCallvirt(Instruction, MethodBase)
public static bool MatchCallOrCallvirt(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.
MatchCallOrCallvirt(Instruction, Type, string)
public static bool MatchCallOrCallvirt(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.
MatchCallOrCallvirt<T>(Instruction, string)
public static bool MatchCallOrCallvirt<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.
MatchCallOrCallvirt(Instruction, string, string)
public static bool MatchCallOrCallvirt(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.