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.

Note

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