[]
        
(Showing Draft Content)

GrapeCity.Enterprise.Data.Expressions.Tools.EnumerableExtensions.Repeat

Repeat Method

Repeat<T>(T, int)

Generates a sequence that contains one repeated value.

Declaration
public static IEnumerable<T> Repeat<T>(this T item, int times)
Parameters
Type Name Description
T item

The value to be repeated.

int times

The number of times to repeat the value in the generated sequence

Returns
Type Description
IEnumerable<T>

An IEnumerable<T> that contains a repeated value.

Type Parameters
Name Description
T

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