I have read a few bits and bobs online about this topic but found none that work for me. What I am trying to do is create a class of a runtime Type.
I use Activator.CreateInstance
which works fine for classes with constructors that contain no arguments. For those with arguments it throws an exception, is there a way around this?
I am more than happy to pass null values or empty values to the ctor so long as I can create the class itself.