creating class from string rep. of classname

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I wan't to create a class from a string I obtain:

eg, if

String classname= "myClass";

then I want something that is the equivalent of:

myClass m= new myClass();
 
Type myType = Type.GetType(<fully qualified class name>, true)
Activator.GetObject(myType, <class name>)

Does this make sense?
 
Back
Top