Is there a way to create an object without using a new keyword in C #, for example, class.forname (); in java.
I want to dynamically create a class object. The creation of an object may depend on user input.
I have a base class x and there are 5 subclasses (a, b, c, d, e). My user input will be a or b or ... e. Using this, I need to create an object of this class. How to do it?
source
share