convert from IObservable to IEnumerable
-
Hi I'm looking for an implementation of ToObservable and ToEnumerable can you pls help with this thx
kaminem wrote:
I'm looking for an implementation of ToObservable and ToEnumerable
That's a different statement than in the title. Are you trying to convert an Observable to an Enumerable, or something else? Can you show us some code that shows what you want to convert?
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
Hi I'm looking for an implementation of ToObservable and ToEnumerable can you pls help with this thx
There is a simple (by MSDN's standards) of
ToObservable
here[^]. Likewise, in the opposite direction, here[^] Note that these are really conversions (as opposed to casts):ToObservable
takes the value from theIEnumerable
on the basis of theIScheduler
, whereasToEnumerable
produces the "list" from theObservable
's updates.“Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed”
“One of the greatest problems of our time is that many are schooled but few are educated”Sir Thomas More (1478 – 1535)
-
Hi I'm looking for an implementation of ToObservable and ToEnumerable can you pls help with this thx
This blog[^] might help you as well.
Apps - Color Analyzer | Arctic | XKCD | Sound Meter | Speed Dial
-
Hi I'm looking for an implementation of ToObservable and ToEnumerable can you pls help with this thx
You cannot really implement either since they are both interfaces. You can get an IEnumerable with ToList() (http://msdn.microsoft.com/en-us/library/bb342261.aspx[^]). There is also ToArray.