Пример #1
0
        public MethodBase GenerateTrampoline(MethodBase signature = null)
        {
            if (!IsValid)
            {
                throw new InvalidOperationException("This hook has been undone.");
            }

            return(_Detour.GenerateTrampoline(signature));
        }
Пример #2
0
        public MethodBase GenerateTrampoline(MethodBase signature = null)
        {
            MethodBase remoteTrampoline = OnGenerateTrampoline?.InvokeWhileNull <MethodBase>(this, signature);

            if (remoteTrampoline != null)
            {
                return(remoteTrampoline);
            }

            return(_Detour.GenerateTrampoline(signature));
        }
Пример #3
0
 public MethodBase GenerateTrampoline(MethodBase signature = null)
 {
     return(_Detour.GenerateTrampoline(signature));
 }