O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

21. Collections

I think this is the most extra ordinary 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

Objectives

In this chapter you’ll:

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

• Use class Array’s static methods to manipulate arrays.

• Use enumerators to “walk through” a collection.

• Use the foreach statement with the .NET collections.

• Use nongeneric collection classes ArrayList, Stack, and Hashtable.

• Use generic collections SortedDictionary and LinkedList.

• Be introduced to covariance and contravariance for generic types.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required