How do i convert a String into a Class reference in C#

I have the String className and i want to convert it to a class reference. what function do i use? for example: new whateverFunction("Class1")(); would be the same as: new Class1();

Is this possible?

You would use the activator class:


Documented here: