public static void Remove(MethodBase method, Delegate hookDelegate) { if (!(OnRemove?.InvokeWhileTrue(method, hookDelegate) ?? true)) { return; } GetEndpoint(method).Remove(hookDelegate); RemoveEntry(HookEntryType.Hook, method, hookDelegate); }
public static void Remove(MethodBase method, Delegate hookDelegate) { if (!(OnRemove?.InvokeWhileTrue(method, hookDelegate) ?? true)) { return; } GetEndpoint(method).Remove(hookDelegate); RemoveEntry(HookEntryType.Hook, method, hookDelegate); }