Do__1_8 - waf/Rx.NET GitHub Wiki

QueryableEx.Do<TSource> Method (IQueryable<TSource>, Expression<Action<TSource>>, Expression<Action<Exception>>, Expression<Action>)

Lazily invokes an action for each value in the sequence, and executes an action upon successful or exceptional termination.

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

Syntax

public static IQueryable<TSource> Do<TSource>(
	this IQueryable<TSource> source,
	Expression<Action<TSource>> onNext,
	Expression<Action<Exception>> onError,
	Expression<Action> onCompleted
)

Parameters

source

Type: System.Linq.IQueryable<TSource>
Source sequence.

onNext

Type: System.Linq.Expressions.Expression<Action<TSource>>
Action to invoke for each element.

onError

Type: System.Linq.Expressions.Expression<Action<Exception>>
Action to invoke on exceptional termination of the sequence.

onCompleted

Type: System.Linq.Expressions.Expression<Action>
Action to invoke on successful termination of the sequence.

Type Parameters

TSource

Source sequence element type.

Return Value

Type: IQueryable<TSource>
Sequence exhibiting the specified side-effects upon enumeration.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

QueryableEx Class
System.Linq Namespace

⚠️ **GitHub.com Fallback** ⚠️