Let's say I have this code:
object abc;
abc = typeof(myclass);
So, I'd like to do something like this
var newobject = GetTheValueTypeAndCreateTheInstance(abc);
and newobject is instance of myclass.
If I do abc = typeof(mycar)
, newobject is instance of mycar
Having abc variable, how do I create instance of myclass
? note that it could be any other class. Any help greatly appreciated !