J
John Cobb
MSDN and intellisense shows the Add method of Hashtable being overridable
however when I use this code:
Public Class RAL
Inherits Hashtable
Public Overrides Sub Add(ByVal Key As String, ByVal Value As Object)
End Sub
I get the following 2 errors indicating that Add is Overloadable instead of
Overridable:
sub 'Add' cannot be declared 'Overrides' because it does not override a sub
in a base class.
sub 'Add' shadows an overloadable member declared in the base class
'Hashtable'. If you want to overload the base method, this method must be
declared 'Overloads'.
If possible I need to override this. Any suggestions appreciated.
Thanks,
John
however when I use this code:
Public Class RAL
Inherits Hashtable
Public Overrides Sub Add(ByVal Key As String, ByVal Value As Object)
End Sub
I get the following 2 errors indicating that Add is Overloadable instead of
Overridable:
sub 'Add' cannot be declared 'Overrides' because it does not override a sub
in a base class.
sub 'Add' shadows an overloadable member declared in the base class
'Hashtable'. If you want to overload the base method, this method must be
declared 'Overloads'.
If possible I need to override this. Any suggestions appreciated.
Thanks,
John