反射 先加载 然后 去创建

 var rs1 = Assembly.LoadFrom("WindowsFormsApp1").GetType("WindowsFormsApp1.Form2");
            var rs = Assembly.Load("WindowsFormsApp1").GetType("WindowsFormsApp1.Form2");

            Form form = (Form)Activator.CreateInstance(rs);
            form.Show();
万物皆对象 然后在创建
posted @ 2020-02-03 08:27  刀小爱  阅读(76)  评论(0编辑  收藏  举报