public Detour CreateDetour(Type delegateType) { var targetDelegate = Marshal.GetDelegateForFunctionPointer(Patch.TargetAddress, delegateType); return new Detour(this, targetDelegate); }