Click or drag to resize
QueryableExRepeatTResult Method (IQueryProvider, TResult, Int32)
Generates a sequence that contains one repeated value.

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

Parameters

provider
Type: System.LinqIQueryProvider
Query provider.
element
Type: TResult
The value to be repeated.
count
Type: SystemInt32
The number of times to repeat the value in the generated sequence.

Type Parameters

TResult
Result sequence element type.

Return Value

Type: IQueryableTResult
Sequence that contains a repeated value.

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