0

I am trying to create a generic user control that inherits parent that also generic. something like this:-

public partial class UserControlBase<T> : UserControl { }
public partial class UCParent<T> : UserControlBase<T> { }
public partial class AnalysisUC<T> : UCParent<T> { }

the UCParent & AnalysisUC designers not works fine. get this error

Cannot create an instance of AnalysisSys.UI.infrastructure.UCParent`1[T] because Type.ContainsGenericParameters is true.

enter image description here

thanks a lot for your help.

Alexei Levenkov
  • 98,904
  • 14
  • 127
  • 179
Kastour
  • 117
  • 3
  • 8

0 Answers0