I'm trying to derive a class from a typed DataSet to add some methods to one
of the DataTables. I would like to keep the names the same in the derived
class as in the base class, so I have used "Shadows" to hide the base class
members. However, this does not seem to work. Any pointers as to what I'm
doing wrong here? (I've attached the basics of the code below). Thanks
Dave Taylor
I have something similar to the following for the base class
Public Class dsConfig
Inherits DataSet
Private tableStreams As StreamsDataTable
Public Class StreamsDataTable
Inherits DataTable
....
End Class
Public ReadOnly Property Streams As StreamsDataTable
Get
Return tableStreams
End Get
End Property
...
End Class
For the derived class I have
Public Class dsConfigEx
Inherits dsConfig
Private Shadows tableStreams As dsConfigEx.StreamsDataTable
Public Shadows ReadOnly Property Streams As dsConfigEx.StreamsDataTable
Get
Return tableStreams
End Get
End Property
Public Shadows Class StreamsDataTable
Inherits dsConfig.StreamsDataTable
Public Function FindByPosition(ByVal Position As Integer) As
dsConfig.StreamsRow
...code to find & return row...
End Function
End Class
End Class