Abstract
Collections occur naturally in most problem domains—a company has a group of employees, an operating system has a collection of processes competing for processor time, and a graphics package has a number of shapes that exist on a drawing layer. For simple collections, System.Array can be effectively used to represent data groups; but for collections with more complex needs like data mapping, addition, and insertion, more advanced types are required, and the System.Collections and System.Collections.Specialized namespaces provide a number of types offering these abilities. Choosing the correct collection is important for achieving elegant and efficient code. The different collection types have varying abilities to perform certain tasks, and also have very different performance characteristics for certain activities.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2004 Nick Wienholt
About this chapter
Cite this chapter
Wienholt, N. (2004). Collections. In: Maximizing .NET Performance. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0784-9_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0784-9_5
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-59059-141-3
Online ISBN: 978-1-4302-0784-9
eBook Packages: Springer Book Archive