BananaHook.PatchingHook.CreateDetour C# (CSharp) Method

CreateDetour() public method

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