M
MuZZY
Hi,
I am comparably new to C# programming, so my apology if the question is
naive
In my C# Win Application i have a bunch of classes inherited from a
TBaseObj class, say TRectObj, TCircleObj, etc.
I want to be able to create an instance of such a class by its name:
Something like:
TBaseObj new_obj = CreateObj("TRectObj"), where CreateObj should be
something returning an object instance
I was looking into Activator cass, but it neets an assembly as a
parameter, but i have those classes within my programm, not as a
separate library.
Any ideas would be highly appreciated!
Andrey
I am comparably new to C# programming, so my apology if the question is
naive

In my C# Win Application i have a bunch of classes inherited from a
TBaseObj class, say TRectObj, TCircleObj, etc.
I want to be able to create an instance of such a class by its name:
Something like:
TBaseObj new_obj = CreateObj("TRectObj"), where CreateObj should be
something returning an object instance
I was looking into Activator cass, but it neets an assembly as a
parameter, but i have those classes within my programm, not as a
separate library.
Any ideas would be highly appreciated!
Andrey