B
boxim
Hi all,
Real easy one I think, just can't find example,
I need to create an instance of a type, but i don't have a type var, i have
a string
e.g.
string t = "MyNamespace.Class1";
I wan't to do something like
System.Activator.CreateInstance(t); // i know the relevant assemblies will
be loaded.
Obviously i know this createinstance method takes a System.Type parameter,
not a string representation.
any ideas?
TIA
Sam Martin
Real easy one I think, just can't find example,
I need to create an instance of a type, but i don't have a type var, i have
a string
e.g.
string t = "MyNamespace.Class1";
I wan't to do something like
System.Activator.CreateInstance(t); // i know the relevant assemblies will
be loaded.
Obviously i know this createinstance method takes a System.Type parameter,
not a string representation.
any ideas?
TIA
Sam Martin