10.1. The Issues with Non-Generic Collections

When the .NET platform was first released, programmers frequently used the System.Collections namespace of mscorlib.dll. Here, developers were provided with a set of classes that allowed them to manage and organize large amounts of data. Table 10-1 documents some of the more commonly used collection classes, and the core interfaces they implement.

Table 10.1. Commonly used Classes of System.Collections
System.Collections ClassMeaning in LifeKey Implemented Interfaces
ArrayListRepresents a dynamically sized collection of objects listed in sequential order.IList, ICollection, IEnumerable, and ICloneable
HashtableRepresents a collection of key/value pairs that are organized based on the hash code of the ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.