日期:2014-05-17 浏览次数:21687 次
namespace Cj.Tk.Form
{
public partial class Form_ZZS : Cj.Common.Forms.InvForm
{
internal Form_ZZS(LX lx, string bm, string mc)
{
........
}
......
}
}
Type t2 = testAssembly.GetType("Cj.Tk.Form.Form_ZZS");
object cm2 = Activator.CreateInstance(t2, new object[] { LX.ZY, GetCurrent[0], GetCurrent[1] });
Type[] types = new Type[3];
types[0] = typeof(LX);
types[1] = typeof(string);
types[2] = typeof(string);
ConstructorInfo constructorInfoObj = t2.GetConstructor(types);
if (constructorInfoObj != null)
{
MessageBox.Show(constructorInfoObj.ToString());
}
else
{
MessageBox.Show("The constructor of MyClass1 that takes an integer " +
"as a parameter is not available.");
}