Reactive Extensions (Rx) For Event-based Programming
Join the DZone community and get the full member experience.Join For Free
Reactive Extensions moves from a pull-model to a push-model, where instead of having a collection that implements an IEnumerable, you have an IObservable that you subscribe to. Your delegate is then called whenever an event is dispatched by your source. But it's not only that. You can make use of many Linq operators to make your code much simpler.
I'd recommend that you watch the videos on the following page:
Out of these videos, do the workshops and try the challenges. Since they are not ordered on the page above, let me list them in order here:
Finally, another good link is this page with tens of Rx samples:
Published at DZone with permission of Rodrigo De Castro, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.