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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights 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