我用反射取得类型,但是泛型必须要求是一个 type, 而不是一个Type类型的变量,如何解决?
代码如下:System.Reflection.Assembly ass = System.Reflection.Assembly.LoadFile(
                System.Windows.Forms.Application.StartupPath + @"\A.B.C.Param.dll");Type typeView = ass.GetType("A.B.C.Param.ParamDetail", false, true);
Type typeWorkItem = ass.GetType("A.B.C.Param.ParamDetailWorkItem", false, true);
            
if( typeView != null && typeWorkItem != null )
    CreateDetails<typeWorkItem,typeView>(strInput,strHead);//注:CreateDetails<TWorkItem,TView>(string,string)是我自己的泛型函数
---------------------------
 Error 1 The type or namespace name 'typeWorkItem' could not be found (are you missing a using directive or an assembly reference?)