コード例 #1
0
        public static bool Revert(MethodInfo method)
        {
            if (!IsDetoured(method))
            {
                return(false);
            }

            bool status = RedirectionHelper.RevertDetour(DetouredMethods[method].Offsets);

            if (status)
            {
                DetouredMethods.Remove(method);
            }
            return(status);
        }