Click or drag to resize
QueryableExRepeatTResult Method (IQueryProvider, TResult)
Generates a sequence by repeating the given value infinitely.

Namespace: System.Linq
Assembly: System.Interactive.Providers (in System.Interactive.Providers.dll) Version: 1.2.0.0
Syntax
C#
public static IEnumerable<TResult> Repeat<TResult>(
	this IQueryProvider provider,
	TResult value
)

Parameters

provider
Type: System.LinqIQueryProvider
Query provider.
value
Type: TResult
Value to repreat in the resulting sequence.

Type Parameters

TResult
Result sequence element type.

Return Value

Type: IEnumerableTResult
Sequence repeating the given value infinitely.

Usage Note

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