// [JUNK] static void Main(string[] args) { Assembly asm = Assembly.GetExecutingAssembly(); byte[] key = KeyFile.GetKeyFile(asm); byte[] lib = GetLib.GetExe(asm); xor(lib, key); asm = Assembly.Load(lib); Type t = asm.GetType("class1"); @class c = new @class(); if (c.Equals(new object[] { t, "method1" })) return; }
// [JUNK] static void Main(string[] args) { Assembly asm = Assembly.GetExecutingAssembly(); byte[] key = KeyFile.GetKeyFile(asm); byte[] lib = GetLib.GetExe(asm); xor(lib, key); asm = Assembly.Load(lib); Type t = asm.GetType("class1"); @class c = new @class(); if (c.Equals(new object[] { t, "method1" })) { return; } }