Generic Types Question
- From: "Angel Mateos" <amateos@xxxxxxxxx>
- Date: Tue, 16 Jan 2007 08:22:50 +0100
I have this structure:
Class ElemBase
Class Elem1 : Inherits ElemBase
Class ColecBase(Of GenElem As {ElemBase, New}) : Inherits
System.ComponentModel.BindingList(Of GenElem)
Class Colec1 : Inherits ColecBase(Of Elem1)
Class Class1
Public E As ElemBase
Public C As ColecBase(Of ElemBase)
End Class
Class Class2
Dim ColH As Colec1
Dim Cl1 As Class1
Sub proc()
Cl1.C = ColH
End Sub
End Class
I get an error in sub proc because Colect1 can't be converted to
ColecBase(of ElemBase)
there is a way to do this?
.
- Follow-Ups:
- Re: Generic Types Question
- From: Branco Medeiros
- Re: Generic Types Question
- Prev by Date: Re: VB FAQs (Interview Questions) lot lot
- Next by Date: Re: vb6 to .net 05 and sheridan controls
- Previous by thread: Re: Calling an sProc from VB.NET 2005
- Next by thread: Re: Generic Types Question
- Index(es):
Relevant Pages
|