Chapter 16. Collection Interfaces and TypesA collection is a container that holds a group of objects. Collections are used to hold all the strings in a listbox, to hold all the employees in a company, to hold all the controls on a page, and so forth. You've already seen the simplest collection, the array (see Chapter 15). An array is a collection that provides an indexed list of elements, all of the same type. The .NET Framework provides a number of already built and tested collection classes, including the ArrayList, Queue, and Stack. This chapter will explain how to use these collections and will provide examples of their use. |