Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Collections and Lists

Chapter 10. Collections and Lists

Object-oriented programming (OOP) has been successful because it gives programmers a way to model physical reality in code. The easiest systems to understand are those that effectively model a familiar reality. If you're trying to represent a person in real-life, for example, you might create a class Person. After you create a Person class, what's the next most obvious thing for that person to do? Well, have a party and congregate with other persons, of course! As soon as you have more than one Person, you need a place to put them all—that's where lists, arrays, hash tables, and other collections come in.

This chapter explains the collections made available to you in the .NET Framework 2.0. Although the concept of collections is not specific to ASP.NET, this chapter shows you how to use them in the context of an ASP.NET 2.0 application. It also looks at the differences between strongly typed collections and generics, as well as exploring the unusual Microsoft.VisualBasic.Collection class and contrasting it with the System.Collections namespace.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint