IObservable in Silverlight 4: IObservable type or namespace could not be found

Where can I find this class? I have included Rx extensions. I made sure that the version I'm compiling is Silverlight 4. My ID2 VS2010 still does not know what the IObservable type is.

I get a compilation error: "The type or namespace IObservable could not be found"

I have not seen them in the System.Collections.Generic namespace, as this thread suggests http://dotnet.uservoice.com/forums/4325-silverlight-feature-suggestions/suggestions/523437-include-iobserver-t-and-iobservable -t-interface

Am I missing a DLL reference?

+4
source share
2 answers

This is in the System namespace, type IObservable <T>. You will need to add a link to the System.Observable.dll from the ReactiveExtensions SDK.

In addition, although this is not strictly required, you probably want to add a link to System.Reactive.dll, which contains many extension methods for working with IObservable <T>.

+8
source

Not very long answers, but not much to say.

Silverlight uses only a small subset of the .NET Framework . However, IObservable is not included in Silverlight 4 unless you have enabled (link) System.Reactive.dll

+1
source

All Articles