ExtraLanscapingToolsCommon.Redirection.RedirectionHelper.RevertRedirect C# (CSharp) Method

RevertRedirect() public static method

public static RevertRedirect ( MethodInfo from, RedirectCallsState state ) : void
from System.Reflection.MethodInfo
state RedirectCallsState
return void
        public static void RevertRedirect(MethodInfo from, RedirectCallsState state)
        {
            var fptr1 = from.MethodHandle.GetFunctionPointer();
            RevertJumpTo(fptr1, state);
        }

Usage Example

Beispiel #1
0
 public static void RevertRedirects(Dictionary <MethodInfo, RedirectCallsState> redirects)
 {
     if (redirects == null)
     {
         return;
     }
     foreach (var kvp in redirects)
     {
         RedirectionHelper.RevertRedirect(kvp.Key, kvp.Value);
     }
 }