Home All Groups Group Topic Archive Search About

CollectionBase question

Author
19 Oct 2007 1:06 PM
saju
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

Author
19 Oct 2007 1:25 PM
saju
I figured it out...!!!
Author
19 Oct 2007 2:27 PM
sloan
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

}




Show quote
"saju" <sajusath***@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
>

AddThis Social Bookmark Button