Skip to main content
  • 355 Accesses

Abstract

C# possesses the System. Collections namespace. This namespace contains classes that can be used to hold collections of objects or to build custom collections of objects. A collection is a single object representing a group of objects (such as a list or dictionary). That is, they are a collection of other objects. Collections may also be referred to as containers (as they contain other objects). These collection classes are often used as the basis for data structures and abstract data types. In general, a collection should be used wherever some significant behaviour is associated with the data in the collection (arrays can be used elsewhere). For example, a Sorted Li st may need to support the idea of adding and removing elements from the list, but also maintaining some sort order etc.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover 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.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Springer-Verlag London

About this chapter

Cite this chapter

Hunt, J. (2002). The Collections API. In: Guide to C# and Object Orientation. Springer, London. https://doi.org/10.1007/978-1-4471-0193-2_17

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-0193-2_17

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-1108-5

  • Online ISBN: 978-1-4471-0193-2

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics