Aggregate(TSource) Method (IQbservable(TSource), Expression(Func(TSource, TSource, TSource)))

Qbservable.Aggregate<TSource> Method (IQbservable<TSource>, Expression<Func<TSource, TSource, TSource>>)

Applies an accumulator function over a queryable observable sequence.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive.Providers (in System.Reactive.Providers.dll)

public static IQbservable<TSource> Aggregate<TSource>(
	this IQbservable<TSource> source,
	Expression<Func<TSource, TSource, TSource>> accumulator

Type Parameters


The type of source.


Type: System.Reactive.Linq.IQbservable<TSource>
An observable sequence to aggregate over.
Type: System.Linq.Expressions.Expression<Func<TSource, TSource, TSource>>
An accumulator function to be invoked on each element.

Return Value

Type: System.Reactive.Linq.IQbservable<TSource>
A queryable observable sequence containing a single element with the final accumulator value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or
© 2015 Microsoft