public static void Execute(MethodDef method)
        {
            var instr = method.Body.Instructions;

            for (var i = 0; i < instr.Count; i++)
            {
                // manually edit numbers, if file broken after used.
                switch (AntiDecompilerUtils.Rnd.Next(0, 4))
                {
                case 0:
                    AntiDecompilerUtils.CallsizeOfcalli(method);     // thanks to cursedsheep
                    break;

                case 1:
                    AntiDecompilerUtils.CallUnaligned(method);
                    break;

                case 2:
                    AntiDecompilerUtils.CallBox(method);
                    break;

                case 3:
                    AntiDecompilerUtils.CallConstrained(method);
                    break;
                }
            }
        }
Beispiel #2
0
 public static void Execute(MethodDef method)
 {
     AntiDecompilerUtils.CallSizeOfCalli(method); // thanks to CursedSheep
     AntiDecompilerUtils.CallUnaligned(method);
     AntiDecompilerUtils.CallConstrained(method);
 }