Chapter 4. Using Collections to Store Data

After completing this chapter, you’ll be able to:

  • Describe how arrays store data

  • Use an array within an application

  • Describe how dictionaries store data and differ from arrays

  • Use a dictionary within an application

  • Describe how structures store data and differ from other collection types

  • Create and use a structure within an application

MANY TEXTS MAKE A BIG deal out of telling readers that collections are complex. In fact, collections are easy. Most people have a collection of some sort. In fact, most people have multiple collections. For example, I have a wonderful fictional book collection and another collection of technical texts. A collection is simply a group of like items. It doesn’t matter whether you’re ...

Get Start Here!™: Learn Microsoft® Visual C#® 2010 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.