Collections

Both LINQ and Rx work with collections. LINQ works with collections that implement IEnumerable, which we will call enumerable collections. Rx works with collections that implement an extension to IEnumerable, IQueryable, which will refer to as observable collections.

The enumerable collection is familiar, as it is the basis for foreach loops in C#. Each enumerable collection is able to provide the Next item in the collection until the collection is exhausted. The details of how this is done will be covered later in the book.

Enumerable Collections

Every generic collection provides the ability to enumerate the values. This means that each collection allows you to ask for the first element, then the next, and the following and each ...

Get Programming Reactive Extensions and LINQ now with O’Reilly online learning.

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