Is there a way to create a object without the use of new keyword in C# some thing like class.forname();
in java.
I want to dynamically create a object of a class. The object creation may depend on the users input.
I have a base class x and there are 5 subclasses (a,b,c,d,e) of it. My user input will be a or b or…e class names. Using this I need to create a object of that class.How do I do this
you can use the Activator class.