Chapter 21. LINQ

Language Integrated Query, or LINQ, is a flexible, SQL-like query language designed to give the programmer consistent syntax to query any data set, whether database, XML, or just plain objects. What’s more, it’s usable from the comfort and safety of your everyday C# file.


LINQ is a language that merely looks like SQL, and only superficially. If you’re familiar with SQL, you’ll notice that the various parts of the query appear ...

Get C# 4.0 How-To now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.