CollectionBase question

  • Thread starter Thread starter saju
  • Start date Start date
S

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
 
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

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top