Why Query Expressions?

LINQ is the concatenation of LIN and Q. Trivial as this might seem, it’s quite important to understand those are the two core pieces of the puzzle being presented here. The latter part is clear: We want provide a way to query data across different domains such as in-memory, relational, and hierarchical, but also more. This mission can be separated from the former part, which has to do with language integration to allow more natural ways to express queries.

To set the scene, let’s take a look at a totally different language: Haskell, a pure functional programming language. With a decreased emphasis on imperative-style code, programs written in a functional style tend to make more operations data driven. For example, instead ...

Get C# 5.0 Unleashed now with O’Reilly online learning.

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