Chapter 23. Language Integrated Queries (LINQ)

In Chapters 11 and 21 you saw a number of language features that have been added in order to facilitate a much more efficient programming style. Language Integrated Queries (LINQ) draws on these features to provide a common programming model for querying data. In this chapter you see how we can take some very verbose, imperative code and reduce it to a few declarative lines. You will see that this gives us the ability to make our code more descriptive rather than prescriptive. By this we mean that we are describing what we want to occur, rather than detailing how it should be done.

Get Professional Visual Studio® 2008 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.