我的错误代码:
string model = "Content";
Type stype = Type.GetType("mvc.Models." + model);
ViewPage<stype> vp = new ViewPage<stype>();
编译时当然会出错,但它清楚地表明了我的想法。我可以这样做吗?
我的错误代码:
string model = "Content";
Type stype = Type.GetType("mvc.Models." + model);
ViewPage<stype> vp = new ViewPage<stype>();
编译时当然会出错,但它清楚地表明了我的想法。我可以这样做吗?