Class HookEndpointManager
Inheritance
System.Object
HookEndpointManager
Assembly: MonoMod.RuntimeDetour.dll
Syntax
public static class HookEndpointManager : Object
Methods
Add(MethodBase, Delegate)
Declaration
public static void Add(MethodBase method, Delegate hookDelegate)
Parameters
| Type |
Name |
Description |
| System.Reflection.MethodBase |
method |
|
| System.Delegate |
hookDelegate |
|
Add<T>(MethodBase, Delegate)
Declaration
public static void Add<T>(MethodBase method, Delegate hookDelegate)
where T : Delegate
Parameters
| Type |
Name |
Description |
| System.Reflection.MethodBase |
method |
|
| System.Delegate |
hookDelegate |
|
Type Parameters
GetOwner(Delegate)
Declaration
public static object GetOwner(Delegate hook)
Parameters
| Type |
Name |
Description |
| System.Delegate |
hook |
|
Returns
| Type |
Description |
| System.Object |
|
Modify(MethodBase, Delegate)
Declaration
public static void Modify(MethodBase method, Delegate callback)
Parameters
| Type |
Name |
Description |
| System.Reflection.MethodBase |
method |
|
| System.Delegate |
callback |
|
Modify<T>(MethodBase, Delegate)
Declaration
public static void Modify<T>(MethodBase method, Delegate callback)
where T : Delegate
Parameters
| Type |
Name |
Description |
| System.Reflection.MethodBase |
method |
|
| System.Delegate |
callback |
|
Type Parameters
Remove(MethodBase, Delegate)
Declaration
public static void Remove(MethodBase method, Delegate hookDelegate)
Parameters
| Type |
Name |
Description |
| System.Reflection.MethodBase |
method |
|
| System.Delegate |
hookDelegate |
|
Remove<T>(MethodBase, Delegate)
Declaration
public static void Remove<T>(MethodBase method, Delegate hookDelegate)
where T : Delegate
Parameters
| Type |
Name |
Description |
| System.Reflection.MethodBase |
method |
|
| System.Delegate |
hookDelegate |
|
Type Parameters
RemoveAllOwnedBy(Object)
Declaration
public static void RemoveAllOwnedBy(object owner)
Parameters
| Type |
Name |
Description |
| System.Object |
owner |
|
Unmodify(MethodBase, Delegate)
Declaration
public static void Unmodify(MethodBase method, Delegate callback)
Parameters
| Type |
Name |
Description |
| System.Reflection.MethodBase |
method |
|
| System.Delegate |
callback |
|
Unmodify<T>(MethodBase, Delegate)
Declaration
public static void Unmodify<T>(MethodBase method, Delegate callback)
Parameters
| Type |
Name |
Description |
| System.Reflection.MethodBase |
method |
|
| System.Delegate |
callback |
|
Type Parameters
Events
OnAdd
Declaration
public static event Func<MethodBase, Delegate, bool> OnAdd
Event Type
| Type |
Description |
| System.Func<System.Reflection.MethodBase, System.Delegate, System.Boolean> |
|
OnGetOwner
Declaration
public static event Func<Delegate, object> OnGetOwner
Event Type
| Type |
Description |
| System.Func<System.Delegate, System.Object> |
|
OnModify
Declaration
public static event Func<MethodBase, Delegate, bool> OnModify
Event Type
| Type |
Description |
| System.Func<System.Reflection.MethodBase, System.Delegate, System.Boolean> |
|
OnRemove
Declaration
public static event Func<MethodBase, Delegate, bool> OnRemove
Event Type
| Type |
Description |
| System.Func<System.Reflection.MethodBase, System.Delegate, System.Boolean> |
|
OnRemoveAllOwnedBy
Declaration
public static event Func<object, bool> OnRemoveAllOwnedBy
Event Type
| Type |
Description |
| System.Func<System.Object, System.Boolean> |
|
OnUnmodify
Declaration
public static event Func<MethodBase, Delegate, bool> OnUnmodify
Event Type
| Type |
Description |
| System.Func<System.Reflection.MethodBase, System.Delegate, System.Boolean> |
|