What is this statement mean?
"Public Overridable NotOverridable ReadOnly Property Count() As Integer"
Printable View
What is this statement mean?
"Public Overridable NotOverridable ReadOnly Property Count() As Integer"
Where did you get it from? As it stands it is impossible (I think).Quote:
Originally posted by pound
What is this statement mean?
"Public Overridable NotOverridable ReadOnly Property Count() As Integer"
Could you mean
"Public Overrides NotOverridable", which would be used in a derived class which would then be used as a base class for a subsequent derived class. (I'm in danger of disappearing up my own exhaust pipe here:bigyello: )
Create new class and Inherits System.Collections.CollectionBase, you will see property count(). Try it.
I think Taxes is correct on both counts (definitely the first at least).
You must be adding something else. I did not get that.Quote:
Originally posted by pound
Create new class and Inherits System.Collections.CollectionBase, you will see property count(). Try it.
Just going to take a stabe here and say that Count is a read only property, and is not overridable..... I think.... the error msg doesn't make much sense does it?
TG
Let me show you something [in attached picture]
Hi,Quote:
Originally posted by pound
Let me show you something [in attached picture]
I did not realise you were talking about intellisense!
I take that to mean the method can be Overridable OR NotOverridable, depending on how you have constructed it.
Is it possible to elaborate upon that? How do the overridable notoverridable keywords come into play? Shouldn't it be either one?
Ahum!!! And I was just hoping that an old hand at VB.NET who had 8146 posts on this forum would intervene with the answer :bigyello:Quote:
Originally posted by mendhak
Is it possible to elaborate upon that? How do the overridable notoverridable keywords come into play? Shouldn't it be either one?
I just don't KNOW. MSDN Help describes the CollectionBase.Count property as
Public Overridable ReadOnly Property Count As Integer
I suppose it is possible that this is an error in Intellisense.
Just a bug im sure.. The windows class viewer shows it as
public int Count { virtual get; }
So thats public overridable readonly
Oi! I was with VB6, which has dulled my Object Oriented senses to such an extent that <<lame joke deleted>>Quote:
Originally posted by taxes
Ahum!!! And I was just hoping that an old hand at VB.NET who had 8146 posts on this forum would intervene with the answer :bigyello:
:(