Chapter 18. Using collections
After completing this chapter, you will be able to:
Create type-safe collections.
Populate a collection with a set of data.
Manipulate and access the data items held in a collection.
Chapter 10 introduces arrays for holding sets of data. Arrays are very useful in this respect, but they have their limitations. Arrays provide only limited functionality; for example, it is not easy to increase or reduce the size of an array, and neither is it a simple matter to sort the data held in an array. Another issue is that arrays only really provide a single means of accessing data, by using an integer index. If your application needs to store and retrieve data by using some ...
Get Microsoft Visual C# 2013 Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.