Results 1 to 12 of 12

Thread: What does it mean?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Thailand
    Posts
    221

    What does it mean?

    What is this statement mean?

    "Public Overridable NotOverridable ReadOnly Property Count() As Integer"
    Teeravee Sirinapasawasdee
    Gestalt IT Consulting Group
    Growth Your Business With e-Process

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    Re: What does it mean?

    Originally posted by pound
    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).

    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 )
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Thailand
    Posts
    221
    Create new class and Inherits System.Collections.CollectionBase, you will see property count(). Try it.
    Teeravee Sirinapasawasdee
    Gestalt IT Consulting Group
    Growth Your Business With e-Process

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    I think Taxes is correct on both counts (definitely the first at least).
    I don't live here any more.

  5. #5
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Originally posted by pound
    Create new class and Inherits System.Collections.CollectionBase, you will see property count(). Try it.
    You must be adding something else. I did not get that.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Thailand
    Posts
    221
    Let me show you something [in attached picture]
    Attached Images Attached Images  
    Teeravee Sirinapasawasdee
    Gestalt IT Consulting Group
    Growth Your Business With e-Process

  8. #8
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Originally posted by pound
    Let me show you something [in attached picture]
    Hi,

    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.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Is it possible to elaborate upon that? How do the overridable notoverridable keywords come into play? Shouldn't it be either one?

  10. #10
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    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?
    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

    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.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  11. #11
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Just a bug im sure.. The windows class viewer shows it as

    public int Count { virtual get; }


    So thats public overridable readonly
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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
    Oi! I was with VB6, which has dulled my Object Oriented senses to such an extent that <<lame joke deleted>>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width