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.




Programming Microsoft Visual C# 2005(c) The Language
Microsoft Visual Basic 2005 BASICS
ISBN: 0619267208
EAN: 2147483647
Year: 2007
Pages: 161

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net