Class ILHook
Inheritance
System.Object
ILHook
Implements
System.IDisposable
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
ILHook(MethodBase, ILContext.Manipulator, ILHookConfig)
Declaration
public ILHook(MethodBase from, ILContext.Manipulator manipulator, ILHookConfig config)
Parameters
ILHook(MethodBase, ILContext.Manipulator, ref ILHookConfig)
Declaration
public ILHook(MethodBase from, ILContext.Manipulator manipulator, ref ILHookConfig config)
Parameters
Fields
Manipulator
Declaration
public readonly ILContext.Manipulator Manipulator
Field Value
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
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
Dispose()
Declaration
Free()
Declaration
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 Parameters
Undo()
Declaration
Implements
System.IDisposable