0
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)
,我在這裏難倒了。System.Reflection.TargetParameterCountExeception:參數計數不匹配
可能是調用函數被某個代理引用,它的參數數量不同於指定的 –
爲什麼你回滾我的編輯?你的代碼片段不方便閱讀水平滾動條。 – BartoszKP