例如把 string str="xxxClassName ";转为 xxxClassName类并调用它的构造函数
Type t=str.GetType(" 它的命名空间. "+str);
ConstructorInfo cti= t.GetConstructor(System.Type.EmptyTypes); //可以获得它的构造函数
xxxClassName x= (xxxClassName)cit.invoke(null) //执行它的构造函数
原文:https://www.cnblogs.com/zienze/p/14793170.html