예제 #1
0
        public static void Hook()
        {
            var jitCompiler = *ClrJit.GetJit();

            OriginalCompileMethod     = jitCompiler.CompileMethod;
            jitCompiler.CompileMethod = CustomCompileMethod;
        }
예제 #2
0
        public static void Unhook()
        {
            var jitCompiler = *ClrJit.GetJit();

            jitCompiler.CompileMethod = OriginalCompileMethod;
        }