//这里UP2 是namespace
string sformname="UP2.dataSet1.Tables[0].Rows[i]["FormName"].ToString();
Form formtest=(Form)System.Activator.CreateInstance(System.Type.GetType(sformname));
formtest.Show();
string sformname="UP2.dataSet1.Tables[0].Rows[i]["FormName"].ToString();
Form formtest=(Form)System.Activator.CreateInstance(System.Type.GetType(sformname));
formtest.Show();
new a();
case b:
new b();
.
.
.
看一下这个函数
http://www.c-sharpcorner.com/Code/2002/April/LoadingAssemblyInfo.asp
如果可以把php中的'变量的变量'这个概念引入进来的话,那就很好弄了.
现在看来必须用peterli1976(汗颜)所说的这中方法了.