Generic Class & Type.GetType()

前端 未结 4 1781
慢半拍i
慢半拍i 2021-02-14 11:54

Bit of a puzzler, I have a generic class

public abstract class MyClass : UserControl
{

}

and I have got a type like this

<         


        
4条回答
  •  青春惊慌失措
    2021-02-14 12:05

    You must construct the class via reflection.

    See http://msdn.microsoft.com/en-us/library/b8ytshk6.aspx for more details.

提交回复
热议问题