using System;
using System.Windows.Forms;
using System.Resources;
using System.Reflection;
using System.IO;


namespace test
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            byte[] bs = Properties.Resources.exe文件;
            Assembly asm = Assembly.Load(bs);
            MethodInfo info = asm.EntryPoint;
           
            ParameterInfo[] parameters = info.GetParameters();

            if ((parameters != null) && (parameters.Length > 0))
                info.Invoke(null, (object[])args);
            else
                info.Invoke(null, null);
        }
    }
}

相关文章:

  • 2022-01-06
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2021-08-01
相关资源
相似解决方案