views:

332

answers:

1

I see it mentioned here, but I can't work out which using I have to add to get it.

(Rolled my own for the moment)

+3  A: 

You need to add reference to System.Reactive.dll. Then in code write:

using System.Linq;

UPDATE: Now Rx is available as separate extensions. There are 3 versions of Rx: Rx for .NET 3.5 Sp1, Rx for Silverlight 3 and Rx for .NET 4 Beta 2. All 3 versions can be downloaded from the Devlabs Rx project page.

QrystaL
And where do I get System.Reactive.dll?
Benjol
Found it: download Silverlight Toolkit source (http://silverlight.codeplex.com/SourceControl/ListDownloadableCommits.aspx), then get it out of the binaries...
Benjol
Download Silverlight Toolkit here: http://silverlight.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30514Then add reference to System.Reactive.dll (by default - C:\Program Files\Microsoft SDKs\Silverlight\v3.0\Toolkit\Oct09\Bin)
QrystaL
But then I get a conflict with System.Collections.Generic.IObservable - interesting...
Benjol
I used it - no conflicts, everything works ok. Do you use VS 2010 beta2 or 2008 ?
QrystaL
I was in VS2010 beta2, now I've downloaded 3.5 version and using it in 2008... fun fun fun!
Benjol
Download this sample application - http://amazedsaint.blogspot.com/2009/11/linq-to-events-more-on-net-reactive.html
amazedsaint
Marking as answer, if you take it with the comments.
Benjol