Arrays and Collections
The next chapter reviews arrays and collections. Arrays are collections of related types, and they are the only native collection. C# supports one-and multidimensional arrays. Jagged arrays are also supported, which are arrays of arrays. System.Array is the underlying type of all arrays, which defines the baseline behavior of all arrays. You learn a lot about arrays in examining the System.Array class. For example, the Array.SyncRoot property is used to synchronize access to an array. Arrays implement a myriad of interfaces, such as ICloneable, ICollection, and IEnumerable. The next chapter discusses the merits of each of these interfaces.
More sophisticated collections are sometimes needed. The .NET Framework offers ArrayList, Queue, Stack, HashTable, and other useful collections. Specialty collections are also available, including BitVector32, HybridDictionary, and NameValueCollection.