Export (0) Print
Expand All

Observable.Scan0<TSource, TAccumulate> Method

March 22, 2012

Applies an accumulator function over an observable sequence and returns each intermediate result. The specified seed value is prepended to the sequence once a message comes in.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

public static IObservable<TAccumulate> Scan0<TSource, TAccumulate>(
	this IObservable<TSource> source,
	TAccumulate seed,
	Func<TAccumulate, TSource, TAccumulate> accumulator
)

Type Parameters

TSource
TAccumulate

Parameters

source
Type: System.IObservable<TSource>
seed
Type: TAccumulate
accumulator
Type: System.Func<TAccumulate, TSource, TAccumulate>

Return Value

Type: System.IObservable<TAccumulate>
Returns IObservable<T>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<TSource>. When you use instance method syntax to call this method, omit the first parameter.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft