Chapter 18. 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, introduced you to arrays for holding sets of data. Arrays are very useful in this respect, but they have their limitations. Arrays provide only limited functionality; 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, for example. Another issue is that arrays only really provide ...

Get Microsoft® Visual C#® 2012 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.