CollectionBase

  • Thread starter Thread starter barry
  • Start date Start date
B

barry

My question is why is it that when using the inherits
System.Collections.CollectionBase in a class you defined, you can use the
members from the Ilist, Ienumerable and Icollection that you want but if you
defined a class using the interface Icollection, for example, you would have
to define all members whether you wished to use them or not?


thanks
 
Barry,

Because by inheriting from that collectionbase you have done that already,
in those are those members already written, therefore it inherits
ICollection, etc..

I hope this helps

Cor
 

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