CollectionBase question - DOTNET

This is a discussion on CollectionBase question - DOTNET ; Hi all, There are two properties in the CollectionBase class. The documentation says "The On* methods are invoked only on the instance returned by the List property, but not on the instance returned by the InnerList property." I tried find ...

+ Reply to Thread
Results 1 to 3 of 3

CollectionBase question

  1. Default CollectionBase question

    Hi all,
    There are two properties in the CollectionBase class. The documentation
    says
    "The On* methods are invoked only on the instance returned by the List
    property, but not on the instance returned by the InnerList property."

    I tried find the catch here... but both the property intances access the On*
    methods.. .they are called when I add elements on the returned instances !!!
    what is the the type of invocation mentioned in the documentation ????
    any ideas ??

    regards



  2. Default Re: CollectionBase question

    I figured it out...!!!



  3. Default Re: CollectionBase question

    Are you using 1.1 or 2.0.

    The best way to do a collection 2.0 (IMHO) is something like this


    public class Employee
    {
    //implement here
    }


    public class EmployeeCollection : List <Employee>
    {

    //and yeah, that's it...you're done

    }




    "saju" <sajusathyan@hotmail.com> wrote in message
    news:eUoANDlEIHA.5044@TK2MSFTNGP03.phx.gbl...
    > Hi all,
    > There are two properties in the CollectionBase class. The documentation
    > says
    > "The On* methods are invoked only on the instance returned by the List
    > property, but not on the instance returned by the InnerList property."
    >
    > I tried find the catch here... but both the property intances access the
    > On* methods.. .they are called when I add elements on the returned
    > instances !!! what is the the type of invocation mentioned in the
    > documentation ????
    > any ideas ??
    >
    > regards
    >




+ Reply to Thread

Similar Threads

  1. Problems with CollectionBase
    By Application Development in forum DOTNET
    Replies: 6
    Last Post: 09-07-2007, 07:22 PM
  2. XMLSerializer - Using CollectionBase
    By Application Development in forum XML SOAP
    Replies: 1
    Last Post: 11-18-2006, 10:07 AM
  3. Schema for an object inherits from CollectionBase
    By Application Development in forum XML SOAP
    Replies: 0
    Last Post: 08-30-2006, 02:39 AM
  4. Replies: 6
    Last Post: 04-25-2005, 03:37 PM
  5. Replies: 0
    Last Post: 04-21-2005, 03:07 PM