Best way to create an instance of run-time determined type [duplicate]
问题 This question already has answers here : How to create a new object instance from a Type (12 answers) Closed 6 years ago . What's the best way (in .NET 4) to create an instance of a type determined at runtime. I have an instance method which although acting on a BaseClass object may be called by instances of its derived classes. I require to create another instance of the same type as this within the method. Overloading the Method for each derived class is not practical as it is fairly