Is there a way to do instantiate a class, but not by it's classname, but using the Class' type? Possibly/probably using Convert or reflection.?
e.g. I have a class and typically create an instance of it as per..
TCustDataDetailModel newDataDetail = new TCustDataDetailModel ();
but I want to be able to do it like ..
public void MyFunction (Type somePassedinParamType)
{
somePassedinParamType newDataDetail = new somePassedinParamType();
}
thx