May 2004
Intermediate to advanced
888 pages
22h 31m
English
The collections you have been looking at in this chapter are generic in that they can store heterogeneous instances of any object type or boxed value type. Most likely, you might need to create a collection that stores data of only one type. This is called a strongly typed collection.
The System.Collections namespace contains an abstract class, CollectionBase, from which your custom collection might descend in order to create strongly-typed collections. Internally, the CollectionBase uses an ArrayList instance to store elements. Access to the ArrayList is through an IList interface provided by the List property. CollectionBase also defines the methods that need to be overridden ...
Read now
Unlock full access