这是一个反思问题。您需要找到类型,然后实例化它的实例,如下所示:Type hai = Type.GetType(classString,true);Object o = (Activator.CreateInstance(hai)); //Or you could cast here if you already knew the type somehow或CreateInstance(assemblyName,className)尽管您将需要注意名称空间/类型冲突,但这将在一个简单的场景中解决问题。另外,将其包装在try / catch中!Activator.CreateInstance很吓人!