Skip to main content
  • 118 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics