Constructor ILHook
- Namespace
- MonoMod.RuntimeDetour
- Assembly
- MonoMod.RuntimeDetour.dll
ILHook(Expression<Action>, Manipulator)
Constructs an ILHook for the method specified by the provided expression tree using the provided manipulator.
public ILHook(Expression<Action> source, ILContext.Manipulator manip)
Parameters
sourceExpression<Action>- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
ILHook(Expression, Manipulator)
Constructs an ILHook for the method specified by the provided expression tree using the provided manipulator.
public ILHook(Expression source, ILContext.Manipulator manip)
Parameters
sourceExpression- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
ILHook(MethodBase, Manipulator)
Constructs an ILHook for the provided method using the provided manipulator.
public ILHook(MethodBase source, ILContext.Manipulator manip)
Parameters
sourceMethodBase- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
ILHook(Expression<Action>, Manipulator, bool)
Constructs an ILHook for the method specified by the provided expression tree using the provided manipulator.
public ILHook(Expression<Action> source, ILContext.Manipulator manip, bool applyByDefault)
Parameters
sourceExpression<Action>- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
applyByDefaultbool- Whether or not this hook should be applied when the constructor finishes.
ILHook(Expression, Manipulator, bool)
Constructs an ILHook for the method specified by the provided expression tree using the provided manipulator.
public ILHook(Expression source, ILContext.Manipulator manip, bool applyByDefault)
Parameters
sourceExpression- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
applyByDefaultbool- Whether or not this hook should be applied when the constructor finishes.
ILHook(MethodBase, Manipulator, bool)
Constructs an ILHook for the provided method using the provided manipulator.
public ILHook(MethodBase source, ILContext.Manipulator manip, bool applyByDefault)
Parameters
sourceMethodBase- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
applyByDefaultbool- Whether or not this hook should be applied when the constructor finishes.
ILHook(Expression<Action>, Manipulator, DetourConfig?)
Constructs an ILHook for the method specified by the provided expression tree using the provided manipulator,
using the specified DetourContext.
public ILHook(Expression<Action> source, ILContext.Manipulator manip, DetourConfig? config)
Parameters
sourceExpression<Action>- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
configDetourConfig- The DetourConfig to use for this ILHook.
ILHook(Expression, Manipulator, DetourConfig?)
Constructs an ILHook for the method specified by the provided expression tree using the provided manipulator and DetourConfig.
public ILHook(Expression source, ILContext.Manipulator manip, DetourConfig? config)
Parameters
sourceExpression- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
configDetourConfig- The DetourConfig to use for this ILHook.
ILHook(MethodBase, Manipulator, DetourConfig?)
Constructs an ILHook for the provided method using the provided manipulator and DetourConfig
public ILHook(MethodBase source, ILContext.Manipulator manip, DetourConfig? config)
Parameters
sourceMethodBase- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
configDetourConfig- The DetourConfig to use for this ILHook.
ILHook(Expression<Action>, Manipulator, DetourConfig?, bool)
Constructs an ILHook for the method specified by the provided expression tree using the provided manipulator,
using the specified DetourContext.
public ILHook(Expression<Action> source, ILContext.Manipulator manip, DetourConfig? config, bool applyByDefault)
Parameters
sourceExpression<Action>- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
configDetourConfig- The DetourConfig to use for this ILHook.
applyByDefaultbool- Whether or not this hook should be applied when the constructor finishes.
ILHook(Expression, Manipulator, DetourConfig?, bool)
Constructs an ILHook for the method specified by the provided expression tree using the provided manipulator,
using the specified DetourContext.
public ILHook(Expression source, ILContext.Manipulator manip, DetourConfig? config, bool applyByDefault)
Parameters
sourceExpression- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
configDetourConfig- The DetourConfig to use for this ILHook.
applyByDefaultbool- Whether or not this hook should be applied when the constructor finishes.
ILHook(MethodBase, Manipulator, DetourConfig?, bool)
Constructs an ILHook for the provided method using the provided manipulator and DetourConfig
public ILHook(MethodBase source, ILContext.Manipulator manip, DetourConfig? config, bool applyByDefault)
Parameters
sourceMethodBase- The method to modify the IL of.
manipILContext.Manipulator- The manipulator to use to modify the method's IL.
configDetourConfig- The DetourConfig to use for this ILHook.
applyByDefaultbool- Whether or not this hook should be applied when the constructor finishes.
ILHook(MethodBase, Manipulator, IDetourFactory, DetourConfig?, bool)
Constructs an ILHook for the provided method using the provided manipulator and DetourConfig
public ILHook(MethodBase method, ILContext.Manipulator manipulator, IDetourFactory factory, DetourConfig? config, bool applyByDefault)
Parameters
methodMethodBase- The method to modify the IL of.
manipulatorILContext.Manipulator- The manipulator to use to modify the method's IL.
factoryIDetourFactory- The IDetourFactory to use when manipulating this ILHook.
configDetourConfig- The DetourConfig to use for this ILHook.
applyByDefaultbool- Whether or not this hook should be applied when the constructor finishes.