Chapter 26. Collections


The shapes a bright container can contain!

Theodore Roethke

Not by age but by capacity is wisdom acquired.

Titus Maccius Plautus

It is a riddle wrapped in a mystery inside an enigma.

Winston Churchill

I think this is the most extraordinary collection of talent, of human knowledge, that has ever been gathered together at the White Housewith the possible exception of when Thomas Jefferson dined alone.

John F. Kennedy

Objectives

In this chapter you will learn:

  • The non-generic and generic collections that are provided by the .NET Framework.

  • To use class Array's Shared methods to manipulate arrays.

  • To use enumerators to "walk through" a collection.

  • To use the For Each statement with the .NET collections.

  • To use non-generic collection classes ArrayList, Stack and Hashtable.

  • To use generic collection classes SortedDictionary and LinkedList.

  • To use synchronization wrappers to make collections safe in multithreaded applications.

Outline

26.1 Introduction

26.2 Collections Overview

26.3 Class Array and Enumerators

26.4 Non-Generic Collections

26.4.1 Class ArrayList

26.4.2 Class Stack

26.4.3 Class Hashtable

26.5 Generic Collections

26.5.1 Generic Class SortedDictionary

26.5.2 Generic Class LinkedList

26.6 Synchronized Collections

26.7 Wrap-Up




Visual BasicR 2005 for Programmers. DeitelR Developer Series
Visual Basic 2005 for Programmers (2nd Edition)
ISBN: 013225140X
EAN: 2147483647
Year: 2004
Pages: 435

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net