| |
| | Creating Strongly Typed Custom Collections in C# (Site not responding. Last check: 2007-10-31) |
 | | The CollectionBase class is derived directly from the System.Object class, and it implements three interfaces: IList, ICollection and IEnumerable, and in order to fully implement your strongly typed collection class, you have to implement IList.Add, IList.Insert, IList.Remove, IList.Contains, IList.IndexOf and ICollection.CopyTo(). |
 | | Note that it is too easy to implement strongly typed collections; all you have to do is to implement the mentioned methods. |
 | | Now, after you have created your own collection class, you are also able to add your own methods to the collection so as to ease working with it. |
| www.c-sharpcorner.com /Code/2002/Aug/StrongTypedCollections.asp (330 words) |
|