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
source
Expression<Action>- The method to modify the IL of.
manip
ILContext.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
source
Expression- The method to modify the IL of.
manip
ILContext.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
source
MethodBase- The method to modify the IL of.
manip
ILContext.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
source
Expression<Action>- The method to modify the IL of.
manip
ILContext.Manipulator- The manipulator to use to modify the method's IL.
applyByDefault
bool- 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
source
Expression- The method to modify the IL of.
manip
ILContext.Manipulator- The manipulator to use to modify the method's IL.
applyByDefault
bool- 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
source
MethodBase- The method to modify the IL of.
manip
ILContext.Manipulator- The manipulator to use to modify the method's IL.
applyByDefault
bool- 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
source
Expression<Action>- The method to modify the IL of.
manip
ILContext.Manipulator- The manipulator to use to modify the method's IL.
config
DetourConfig- 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
source
Expression- The method to modify the IL of.
manip
ILContext.Manipulator- The manipulator to use to modify the method's IL.
config
DetourConfig- 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
source
MethodBase- The method to modify the IL of.
manip
ILContext.Manipulator- The manipulator to use to modify the method's IL.
config
DetourConfig- 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
source
Expression<Action>- The method to modify the IL of.
manip
ILContext.Manipulator- The manipulator to use to modify the method's IL.
config
DetourConfig- The DetourConfig to use for this ILHook.
applyByDefault
bool- 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
source
Expression- The method to modify the IL of.
manip
ILContext.Manipulator- The manipulator to use to modify the method's IL.
config
DetourConfig- The DetourConfig to use for this ILHook.
applyByDefault
bool- 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
source
MethodBase- The method to modify the IL of.
manip
ILContext.Manipulator- The manipulator to use to modify the method's IL.
config
DetourConfig- The DetourConfig to use for this ILHook.
applyByDefault
bool- 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
method
MethodBase- The method to modify the IL of.
manipulator
ILContext.Manipulator- The manipulator to use to modify the method's IL.
factory
IDetourFactory- The IDetourFactory to use when manipulating this ILHook.
config
DetourConfig- The DetourConfig to use for this ILHook.
applyByDefault
bool- Whether or not this hook should be applied when the constructor finishes.