C H A P T E R 2

Core LINQ

The relationship between LINQ and Reactive Extensions (Rx) is deep and fascinating. We will explore the relationship between the two in Chapter 5, but for now it is sufficient to point out that the central element in LINQ is IEnumerable, much as the central element in Rx is IObservable. Many of the same operators appear in both frameworks, such as Select and SelectMany.

In this chapter we will dive into LINQ in a bit more depth, first exploring the syntax of a LINQ statement, and then a number of useful LINQ operators, and concluding with a demonstration program that will illustrate many of the central concepts of LINQ.

Get Programming Reactive Extensions and LINQ 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.