T
teel
Hi there,
I need to create an instance of a class whose name I have in a string
variable, let's say that:
string myTypeName = "MyType";
and in a result I need the equivalent of:
MyType obj = new MyType();
I've tried something like Type.GetType which returns the System.Type
but I don't know how to create a new object with this. My .NET version
is 1.1
I'd be grateful for help.
Best regards
teel
I need to create an instance of a class whose name I have in a string
variable, let's say that:
string myTypeName = "MyType";
and in a result I need the equivalent of:
MyType obj = new MyType();
I've tried something like Type.GetType which returns the System.Type
but I don't know how to create a new object with this. My .NET version
is 1.1
I'd be grateful for help.
Best regards
teel