|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
CollectionBase questionHi 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 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 > |
|||||||||||||||||||||||