I have a class:
Private Class ClientList
Inherits StringCollectio n
Public InternalUser As Boolean = False
Public Shadows Function Contains(ByVal ClientNumber As String) As
Boolean
If InternalUser Then Return True
Return MyBase.Contains (ClientNumber)
End Function
End Class
I need to do the following:
dim mClientList as ClientList
dim mStringCollecti on as new StringCollectio n
mClientList = mStringCollecti on.
What do I do to my class definition to allow this? Option Strict On flags
this as an illegal implicit conversion. I'm open to using
mClientList = new ClientList(mStr ingCollection) as well.
Thanks,
Mike Ober.
Private Class ClientList
Inherits StringCollectio n
Public InternalUser As Boolean = False
Public Shadows Function Contains(ByVal ClientNumber As String) As
Boolean
If InternalUser Then Return True
Return MyBase.Contains (ClientNumber)
End Function
End Class
I need to do the following:
dim mClientList as ClientList
dim mStringCollecti on as new StringCollectio n
mClientList = mStringCollecti on.
What do I do to my class definition to allow this? Option Strict On flags
this as an illegal implicit conversion. I'm open to using
mClientList = new ClientList(mStr ingCollection) as well.
Thanks,
Mike Ober.
Comment