Chapter 4. Arrays and Collections


Even if you are writing an application that works with ADO.NET and relational databases, you will still encounter situations where you need to know how to manage lists of information. Even if you aren’t the one who created the lists, you should still know how to use them. For example, there are many controls available in Windows Forms and Web Forms that expose lists or collections to allow you to manipulate their data.

This chapter introduces you to the basics of working with arrays and collections. You will learn the differences between the two types of data and the situations in which both are used.

Working with Arrays

Arrays are basically lists ...

Get Microsoft® Visual C# 2005 Unleashed now with O’Reilly online learning.

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