ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.ExpressionInfo Assembly / GrapeCity.Enterprise.Data.Expressions.Tools 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

In This Topic
    Repeat<T> Method
    In This Topic
    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