< Day Day Up > |
Variables are well suited for holding a single piece of data, but more often than not, you need a mechanism that can store more than one piece of data of a certain type. Collections allow you to place data within a single containing object and retrieve individual elements within that container using a consistent retrieval method. This chapter looks at how collections are used within the C# language and .NET Framework. Because several different collection types are built into the .NET Framework, you'll see how to select the appropriate container based on your application design. Furthermore, you will also learn how to create your own collection types if no other suitable container is available. |
< Day Day Up > |