ActiveReports 12
Repeat<T> Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.DataEngine.Extensions Namespace > EnumerableExtensions Class : Repeat<T> Method
The type of the value to be repeated in the result sequence.
The value to be repeated.
The number of times to repeat the value in the generated sequence
Generates a sequence that contains one repeated value.
Syntax
'Declaration
 
Public Shared Function Repeat(Of T)( _
   ByVal item As T, _
   ByVal times As Integer _
) As IEnumerable(Of T)
public static IEnumerable<T> Repeat<T>( 
   T item,
   int times
)

Parameters

item
The value to be repeated.
times
The number of times to repeat the value in the generated sequence

Type Parameters

T
The type of the value to be repeated in the result sequence.

Return Value

An IEnumerable that contains a repeated value.
See Also

Reference

EnumerableExtensions Class
EnumerableExtensions Members