M
Marina
Hi,
I have a class that inherits from CollectionBase, and I'm trying to override
its Count property. As per the documentation, this property is overridable -
so I should be able to do this. So this is my code:
Public Overrides ReadOnly Property Count() As Integer
Get
End Get
End Property
The message I am getting is:
'Public Overrides ReadOnly Property Count() As Integer' cannot override
'Public Overridable NotOverridable ReadOnly Property Count() As Integer'
because it is declared 'NotOverridable'.
According to this, Count is both Overridable and NotOverridable? And the
NotOverridable is winning?
Can anyone shed any light on this?
I have a class that inherits from CollectionBase, and I'm trying to override
its Count property. As per the documentation, this property is overridable -
so I should be able to do this. So this is my code:
Public Overrides ReadOnly Property Count() As Integer
Get
End Get
End Property
The message I am getting is:
'Public Overrides ReadOnly Property Count() As Integer' cannot override
'Public Overridable NotOverridable ReadOnly Property Count() As Integer'
because it is declared 'NotOverridable'.
According to this, Count is both Overridable and NotOverridable? And the
NotOverridable is winning?
Can anyone shed any light on this?