SuperLinq SuperLinq
SuperLinq SuperLinq
DocFX + Singulink = ♥

Search Results for

    Method Repeat

    Repeat<TResult>(TResult)

    Generates a sequence by repeating the given value infinitely.

    Declaration
    public static IAsyncEnumerable<TResult> Repeat<TResult>(TResult value)
    Parameters
    Type Name Description
    TResult value

    Value to repeat in the resulting sequence.

    Returns
    Type Description
    IAsyncEnumerable<TResult>

    Sequence repeating the given value infinitely.

    Type Parameters
    Name Description
    TResult

    Result sequence element type.

    Repeat<TSource>(IAsyncEnumerable<TSource>)

    Repeats and concatenates the source sequence infinitely.

    Declaration
    public static IAsyncEnumerable<TSource> Repeat<TSource>(this IAsyncEnumerable<TSource> source)
    Parameters
    Type Name Description
    IAsyncEnumerable<TSource> source

    Source sequence.

    Returns
    Type Description
    IAsyncEnumerable<TSource>

    Sequence obtained by concatenating the source sequence to itself infinitely.

    Type Parameters
    Name Description
    TSource

    Source sequence element type.

    Exceptions
    Type Condition
    ArgumentNullException

    source is null.

    Repeat<TSource>(IAsyncEnumerable<TSource>, int)

    Repeats and concatenates the source sequence the given number of times.

    Declaration
    public static IAsyncEnumerable<TSource> Repeat<TSource>(this IAsyncEnumerable<TSource> source, int count)
    Parameters
    Type Name Description
    IAsyncEnumerable<TSource> source

    Source sequence.

    int count

    Number of times to repeat the source sequence.

    Returns
    Type Description
    IAsyncEnumerable<TSource>

    Sequence obtained by concatenating the source sequence to itself the specified number of times.

    Type Parameters
    Name Description
    TSource

    Source sequence element type.

    Exceptions
    Type Condition
    ArgumentNullException

    source is null.

    ArgumentOutOfRangeException

    count is less than or equal to 0.

    © SuperLinq Authors. All rights reserved.