Show / Hide Table of Contents

    Class Hook<T>

    Inheritance
    System.Object
    Hook
    Hook<T>
    Implements
    IDetour
    System.IDisposable
    Inherited Members
    Hook.OnDetour
    Hook.OnUndo
    Hook.OnGenerateTrampoline
    Hook.Method
    Hook.Target
    Hook.TargetReal
    Hook.DelegateTarget
    Hook.Apply()
    Hook.Undo()
    Hook.Free()
    Hook.Dispose()
    Hook.GenerateTrampoline(MethodBase)
    Hook.GenerateTrampoline<T>()
    Hook.IsValid
    Hook.IsApplied
    Hook.Detour
    Namespace: MonoMod.RuntimeDetour
    Assembly: MonoMod.RuntimeDetour.dll
    Syntax
    public class Hook<T> : Hook, IDetour, IDisposable
    Type Parameters
    Name Description
    T

    Constructors

    Hook(T, T)

    Declaration
    public Hook(T from, T to)
    Parameters
    Type Name Description
    T from
    T to

    Hook(T, T, HookConfig)

    Declaration
    public Hook(T from, T to, HookConfig config)
    Parameters
    Type Name Description
    T from
    T to
    HookConfig config

    Hook(T, T, ref HookConfig)

    Declaration
    public Hook(T from, T to, ref HookConfig config)
    Parameters
    Type Name Description
    T from
    T to
    HookConfig config

    Hook(T, IntPtr)

    Declaration
    public Hook(T from, IntPtr to)
    Parameters
    Type Name Description
    T from
    System.IntPtr to

    Hook(T, IntPtr, HookConfig)

    Declaration
    public Hook(T from, IntPtr to, HookConfig config)
    Parameters
    Type Name Description
    T from
    System.IntPtr to
    HookConfig config

    Hook(T, IntPtr, ref HookConfig)

    Declaration
    public Hook(T from, IntPtr to, ref HookConfig config)
    Parameters
    Type Name Description
    T from
    System.IntPtr to
    HookConfig config

    Hook(Expression<Action>, T)

    Declaration
    public Hook(Expression<Action> from, T to)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Action> from
    T to

    Hook(Expression<Action>, T, HookConfig)

    Declaration
    public Hook(Expression<Action> from, T to, HookConfig config)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Action> from
    T to
    HookConfig config

    Hook(Expression<Action>, T, ref HookConfig)

    Declaration
    public Hook(Expression<Action> from, T to, ref HookConfig config)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Action> from
    T to
    HookConfig config

    Hook(Expression<Func<T>>, Delegate)

    Declaration
    public Hook(Expression<Func<T>> from, Delegate to)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T>> from
    System.Delegate to

    Hook(Expression<Func<T>>, Delegate, HookConfig)

    Declaration
    public Hook(Expression<Func<T>> from, Delegate to, HookConfig config)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T>> from
    System.Delegate to
    HookConfig config

    Hook(Expression<Func<T>>, Delegate, ref HookConfig)

    Declaration
    public Hook(Expression<Func<T>> from, Delegate to, ref HookConfig config)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T>> from
    System.Delegate to
    HookConfig config

    Hook(Expression<Func<T>>, IntPtr)

    Declaration
    public Hook(Expression<Func<T>> from, IntPtr to)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T>> from
    System.IntPtr to

    Hook(Expression<Func<T>>, IntPtr, HookConfig)

    Declaration
    public Hook(Expression<Func<T>> from, IntPtr to, HookConfig config)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T>> from
    System.IntPtr to
    HookConfig config

    Hook(Expression<Func<T>>, IntPtr, ref HookConfig)

    Declaration
    public Hook(Expression<Func<T>> from, IntPtr to, ref HookConfig config)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T>> from
    System.IntPtr to
    HookConfig config

    Implements

    IDetour
    System.IDisposable
    Back to top Yet another C# modding swiss army knife.