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

9. Introduction to LINQ and the List Collection

To write it, it took three months; to conceive it three minutes; to collect the data in it—all my life.

—F. Scott Fitzgerald

You shall listen to all sides and filter them from your self.

—Walt Whitman

The portraitist can select one tiny aspect of everything shown at a moment to incorporate into the final painting.

—Robert Nozick

List, list, O, list!

—William Shakespeare

Objectives

In this chapter you’ll:

• Learn basic LINQ concepts.

• Query an array using LINQ.

• Learn basic .NET collections concepts.

• Create and use a generic List collection.

• Query a generic List collection using LINQ.

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