将实例化的System.Type作为泛型类的类型参数传递
string typeName = <read type name from somwhere>;Type myType = Type.GetType(typeName);MyGenericClass<myType> myGenericClass = new MyGenericClass<myType>();
public class MyGenericClass<T>
隔江千里
慕田峪4524236
慕姐4208626
随时随地看视频慕课网APP