Tag Info

New answers tagged

1

The two interfaces are actually part of Reactive Extensions (Rx for short), you should use that library pretty much whenever you want to use them. The interfaces are technically in mscrolib, not in any of the Rx assemblies. I think this is to ease interoperability: this way, libraries like TPL Dataflow can provide members that work with those interfaces, ...


2

I can try to answer your question on a generic level. You can create a centralized repository object which contains all currently loaded matrix objects and also records accesses to them. It loads the matrix objects on first access and stores them internally. All requests for these matrix objects must go through this repository object to record them ...


0

You're right. The example works poorly for multiple IObservables. I guess OnComplete() doesn't provide a reference back because they don't want the IObservable to have to keep it around. If I were writing that I would probably support multiple subscriptions by having Subscribe take an identifier as a second parameter, which gets passed back to the ...


3

The idea of the Observer pattern is to allow an object to register for updates from another object, without the other object having to know about the actual type of the observer. In statically typed languages such as Java or C++, this is done by having the class of the object that needs to register for updates, inherit from the Observer class or implement ...



Top 50 recent answers are included