B
Bud via DotNetMonster.com
How do you pass parameters to the contructor using create instance
Type t = Type.GetType("MyApp.Class1");
object obj = Activator.CreateInstance(t);
now all contructors for Class1 take at least one parameter
public class Class1
{
public Class1(Employee emp)
{
}
}
so how do I pass it emp
Type t = Type.GetType("MyApp.Class1");
object obj = Activator.CreateInstance(t);
now all contructors for Class1 take at least one parameter
public class Class1
{
public Class1(Employee emp)
{
}
}
so how do I pass it emp