2012年3月16日 星期五

[Rx]Reactive Observable方法的比較

網路上有一些範例,有些可以執行,有些連成員的方法都找不到,大部分都是因為使用了不同的Assembly,

所以下面列出這些不一樣的地方,我們就可以少走一些彎路啦。

  System.Reactive.Linq Microsoft.Phone.Reactive

簽名、種類都相同的

(黃底表示下面有類似的)

Aggregate
All(TSource)
Amb
And(TLeft, TRight)
Any
AsObservable(TSource)
Average
Cast(TResult)
Catch
CombineLatest(TLeft, TRight, TResult)
Concat
Contains
Count(TSource)
Defer(TValue)
Delay
Dematerialize(TSource)
DistinctUntilChanged
Do
Empty
Finally(TSource)
FromAsyncPattern
FromEvent
Generate
GetEnumerator(TSource)
GroupBy
Interval
Latest(TSource)
LongCount(TSource)
Materialize(TSource)
Max
MaxBy
Merge
Min
MinBy
MostRecent(TSource)
Never(TValue)
Next(TSource)
ObserveOn
OfType(TResult)
OnErrorResumeNext
Publish
Range
RefCount(TSource)
Repeat
Replay
Retry
Return
Sample
Scan
Select
SelectMany
Skip(TSource)
SkipLast(TSource)
SkipUntil(TSource, TOther)
Start
StartWith
Subscribe
SubscribeOn
Sum
Switch(TSource)
Synchronize
TakeLast(TSource)
TakeUntil(TSource, TOther)
Then(TSource, TResult)
Throttle
Throw
TimeInterval
Timeout
Timer
Timestamp
ToAsync
ToEnumerable(TSource)
ToObservable
Using(TSource, TResource)
Where
Zip

有部分不相同者

(黃底表示上面有類似的)

 

Buffer
Create
First
FirstOrDefault
Join(TLeft, TRight, TLeftDuration, TRightDuration, TResult)
Last
LastOrDefault
Single
SingleOrDefault
SkipWhile
Take(TSource)
TakeWhile
BufferWithCount
BufferWithTime
BufferWithTimeOrCount
Create(TSource)
CreateWithDisposable(TSource)
First(TSource)
FirstOrDefault(TSource)
Join
Last(TSource)
LastOrDefault(TSource)
Single(TSource)
SingleOrDefault(TSource)
SkipWhile(TSource)
Take
TakeWhile(TSource)
 

只有一邊有的


(黃底表示上面有類似的)

DefaultIfEmpty
Distinct
ElementAt(TSource)
ElementAtOrDefault(TSource)
ForEach(TSource)
FromEventPattern
GroupByUntil
GroupJoin(TLeft, TRight, TLeftDuration, TRightDuration, TResult)
IgnoreElements(TSource)
Multicast
PublishLast
SequenceEqual
ToArray(TSource)
ToDictionary
ToEvent
ToEventPattern(TEventArgs)
ToList(TSource)
ToLookup
When
Window
Case
DoWhile(TSource)
For(TSource, TResult)
ForkJoin
GenerateWithTime
If(TResult)
IsEmpty(TSource)
Let
ObserveOnDispatcher(TSource)
Prune
RemoveTimeInterval(TSource)
RemoveTimestamp(TSource)
Run
Scan0(TSource, TAccumulate)
SubscribeOnDispatcher(TSource)
While(TSource)

參考資料:

沒有留言:

張貼留言