O'Reilly logo

Introducing Visual C# 2010 by Adam Freeman

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

Chapter 27. LINQ to Objects

LINQ—which stands for Language Integrated Query and is pronounced as "link"—allows you to query almost any data using SQL-like syntax, even if the data isn't in a database. This may not sound like a particularly useful idea at first, but once you start using LINQ, you won't know how you managed without it. LINQ is one of my two favorite features of C# (the other being the parallel programming features covered in Chapter 24), and I find it endlessly useful.

LINQ can operate on a range of different data sources. When LINQ operates on a specific kind of data source, the term LINQ is joined to the data source type with the word to, so when LINQ is applied to objects in your program, you are using LINQ to Objects. When querying ...

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