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 ...

Get Introducing Visual C# 2010 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.