23. Collections


In this chapter you’ll learn:

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

• To use class Array’s static methods to manipulate arrays.

• To use enumerators to “walk through” a collection.

• To use the foreach statement with the .NET collections.

• To use nongeneric collection classes ArrayList, Stack, and Hashtable.

• To use generic collection classes SortedDictionary and LinkedList.

The shapes a bright container can contain!

Theodore Roethke

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

John F. Kennedy


23.1 ...

Get C# 2010 for Programmers, Fourth Edition 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.