Abstract
This chapter will discuss the different collection types in .NET—Array, List<T>, ArrayList, Stack, Queue, Hashtable, and Dictionary—which are used for storing and managing data in an application. We will look at the internal workings of the List<T> class and how the CLR instantiates an instance of the List<T> class, how it adds items into it, and how it expands its internal array to accommodate more items. We will also examine the internal workings of the ArrayList, Stack, Queue, Hashtable, and Dictionary classes to see how CLR handles these classes to store information.
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
© 2013 Mohammad Rahman
About this chapter
Cite this chapter
Rahman, M. (2013). Collections Explained. In: Expert C# 5.0. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4861-3_11
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4861-3_11
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4860-6
Online ISBN: 978-1-4302-4861-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)