Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 460709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:54:03+00:00 2026-05-12T22:54:03+00:00

What is LINQ to events a.k.a RX Framework aka the Reactive Extensions in .NET

  • 0

What is LINQ to events a.k.a RX Framework aka the Reactive Extensions in .NET 4.0 (but also available as backported versions)?

In other words, what is all the stuff in System.Reactive.dll for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:54:03+00:00Added an answer on May 12, 2026 at 10:54 pm

    .NET Rx team (this is not an official name) found that any push sequence (events, callbacks) can be viewed as a pull sequence (as we normally do while accessing enumerables) as well – or they are Dual in nature. In short observer/observable pattern is the dual of enumeration pattern.

    So what is cool about about this duality?

    Anything you do with Pull sequences (read declarative style coding) is applicable to push sequences as well. Here are few aspects.
    You can create Observables from existing events and then use them as first class citizens in .NET – i.e, you may create an observable from an event, and expose the same as a property.

    As IObservable is the mathematical dual of IEnumerable, .NET Rx facilitates LINQ over push sequences like Events, much like LINQ over IEnumerables

    It gives greater freedom to compose new events – you can create specific events out of general events.

    .NET Rx introduces two interfaces, IObservable and IObserver that “provides an alternative to using input and output adapters as the producer and consumer of event sources and sinks” and this will soon become the de-facto for writing asynchronous code in a declarative manner. Here is a quick example.

    //Create an observable for MouseLeftButtonDown
    
    var mouseLeftDown=Observable.FromEvent<MouseButtonEventArgs>  
            (mycontrol,"MouseLeftButtonDown");  
    
    //Query the above observable just to select the points
    var points = from ev in mouseEvents  
                     select ev.EventArgs.GetPosition(this);  
    
    //Show points in the window's title, when ever user
    //presses the left button of the mouse
    points.Subscribe(p => this.Title = "Location ="  
                                            + p.X + "," + p.Y);
    

    You may go through these posts as well to get the head and tail in detail. Also have a look at the relates source code as well.

    • Part I – System.Reactive or the .NET Reactive Extensions (Rx) – Concepts and First Look
    • Part II – LINQ To Events – More on .NET Reactive Extensions (Rx)
    • Part III – LINQ To Events – Generating GetEventName() Wrapper Methods using T4 Text Templates

    Check out this set of articles

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Reactive Extensions for .NET (Rx) to expose events as IObservable<T> . I
Linq in general, has extensions methods(at IEnumerable) like Where, Select, OrderBy. But use another
LINQ is one of the greatest improvements to .NET since generics and it saves
The new IObservable/IObserver frameworks in the System.Reactive library coming in .NET 4.0 are very
I'm having a problem with LINQ. I have 2 tables (Parent-child relation) Table1: Events
I have been looking at the Rx Framework aslo refered to as LINQ to
I want to include a table (Events) from another database in my LINQ to
My SQL tables names are all plural - Events, Teams, Campuses, etc... When I
I am trying to make a log viewer displaying events from different sources but
I need a linq statement that returns all entries from a certain date. A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.