DoWhile__1_1 - waf/Rx.NET GitHub Wiki

QueryableEx.DoWhile<TResult> Method (IQueryable<TResult>, Expression<Func<Boolean>>)

Generates an enumerable sequence by repeating a source sequence as long as the given loop postcondition holds.

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

Syntax

public static IQueryable<TResult> DoWhile<TResult>(
	this IQueryable<TResult> source,
	Expression<Func<bool>> condition
)

Parameters

source

Type: System.Linq.IQueryable<TResult>
Source sequence to repeat while the condition evaluates true.

condition

Type: System.Linq.Expressions.Expression<Func<Boolean>>
Loop condition.

Type Parameters

TResult

Result sequence element type.

Return Value

Type: IQueryable<TResult>
Sequence generated by repeating the given sequence until the condition evaluates to false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<TResult>. 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** ⚠️