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