circular referencing of GENERICS
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Experts please help. Class parentctrl(Of editctrl) inherits control ' ... code ... End Class Class mylistbox(Of pctrl) inherits control ' .. code ... End Class Now the problem comes when I try to instantiate the class parentctrl providing it with a concrete class in place of the generic. there is an infinite nesting that is created. how do I overcome this. Dim mycombobox as new parentctrl(Of mylistbox(Of parentctrl(Of mylistbox(Of parentctrl(Of mylistbox(Of parentctrl .... )))))) () Is there a keyword like "self" or something that can make the compiler understand that I have provided it enough information to do what i want. If one tries the above code out you will know exactly what the problem is.