Show / Hide Table of Contents

    Class ILHook

    Inheritance
    System.Object
    ILHook
    Implements
    ISortableDetour
    IDetour
    System.IDisposable
    Namespace: MonoMod.RuntimeDetour
    Assembly: MonoMod.RuntimeDetour.dll
    Syntax
    public class ILHook : Object, ISortableDetour, IDetour, IDisposable

    Constructors

    ILHook(MethodBase, ILContext.Manipulator)

    Declaration
    public ILHook(MethodBase from, ILContext.Manipulator manipulator)
    Parameters
    Type Name Description
    System.Reflection.MethodBase from
    ILContext.Manipulator manipulator

    ILHook(MethodBase, ILContext.Manipulator, ILHookConfig)

    Declaration
    public ILHook(MethodBase from, ILContext.Manipulator manipulator, ILHookConfig config)
    Parameters
    Type Name Description
    System.Reflection.MethodBase from
    ILContext.Manipulator manipulator
    ILHookConfig config

    ILHook(MethodBase, ILContext.Manipulator, ref ILHookConfig)

    Declaration
    public ILHook(MethodBase from, ILContext.Manipulator manipulator, ref ILHookConfig config)
    Parameters
    Type Name Description
    System.Reflection.MethodBase from
    ILContext.Manipulator manipulator
    ILHookConfig config

    Fields

    Manipulator

    Declaration
    public readonly ILContext.Manipulator Manipulator
    Field Value
    Type Description
    ILContext.Manipulator

    Method

    Declaration
    public readonly MethodBase Method
    Field Value
    Type Description
    System.Reflection.MethodBase

    OnDetour

    Declaration
    public static Func<ILHook, MethodBase, ILContext.Manipulator, bool> OnDetour
    Field Value
    Type Description
    System.Func<ILHook, System.Reflection.MethodBase, ILContext.Manipulator, System.Boolean>

    OnUndo

    Declaration
    public static Func<ILHook, bool> OnUndo
    Field Value
    Type Description
    System.Func<ILHook, System.Boolean>

    Properties

    After

    Declaration
    public IEnumerable<string> After { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.String>

    Before

    Declaration
    public IEnumerable<string> Before { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.String>

    GlobalIndex

    Declaration
    public uint GlobalIndex { get; }
    Property Value
    Type Description
    System.UInt32

    ID

    Declaration
    public string ID { get; set; }
    Property Value
    Type Description
    System.String

    Index

    Declaration
    public int Index { get; }
    Property Value
    Type Description
    System.Int32

    IsApplied

    Declaration
    public bool IsApplied { get; }
    Property Value
    Type Description
    System.Boolean

    IsValid

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    System.Boolean

    MaxIndex

    Declaration
    public int MaxIndex { get; }
    Property Value
    Type Description
    System.Int32

    Priority

    Declaration
    public int Priority { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    Apply()

    Declaration
    public void Apply()

    Dispose()

    Declaration
    public void Dispose()

    Free()

    Declaration
    public void Free()

    GenerateTrampoline(MethodBase)

    Declaration
    public MethodBase GenerateTrampoline(MethodBase signature = null)
    Parameters
    Type Name Description
    System.Reflection.MethodBase signature
    Returns
    Type Description
    System.Reflection.MethodBase

    GenerateTrampoline<T>()

    Declaration
    public T GenerateTrampoline<T>()
        where T : Delegate
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Undo()

    Declaration
    public void Undo()

    Implements

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