This question is related to C#.
I need to create objects of the class name which i will pass as parameter. Which is very much same as RUNTIME_CLASS macro in MFC. My requirement is i want to implement the same thing in C# without using the pointers. I am including a sample code which i am using in my project
Class1 obj1 = new Class1()
Class2 obj2 = new Class2()
I want to remove the switch statement and I want to use some thing like RUNTIME_CLASS. But I want to stick with managed code.