Using collections

After completing this chapter, you will be able to:

  • Explain the functionality provided in the different collection classes available with the  .NET Framework.

  • Create type-safe collections.

  • Populate a collection with a set of data.

  • Manipulate and access the data items held in a collection.

  • Search a list-oriented collection for matching items by using a predicate.

Chapter 10, “Using arrays,” 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. Also, arrays only really provide ...

Get Microsoft Visual C# Step by Step, Ninth Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.