SuperLinq SuperLinq
SuperLinq SuperLinq
DocFX + Singulink = ♥

Search Results for

    Method Insert

    Insert<T>(IAsyncEnumerable<T>, IAsyncEnumerable<T>, int)

    Inserts the elements of a sequence into another sequence at a specified index.

    Declaration
    public static IAsyncEnumerable<T> Insert<T>(this IAsyncEnumerable<T> first, IAsyncEnumerable<T> second, int index)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> first

    The source sequence.

    IAsyncEnumerable<T> second

    The sequence that will be inserted.

    int index

    The zero-based index at which to insert elements from second.

    Returns
    Type Description
    IAsyncEnumerable<T>

    A sequence that contains the elements of first plus the elements of second inserted at the given index.

    Type Parameters
    Name Description
    T

    Type of the elements of the source sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    first is null.

    ArgumentNullException

    second is null.

    ArgumentOutOfRangeException

    Thrown if index is negative.

    ArgumentOutOfRangeException

    Thrown lazily if index is greater than the length of first. The validation occurs when yielding the next element after having iterated first entirely.

    Insert<T>(IAsyncEnumerable<T>, IAsyncEnumerable<T>, Index)

    Inserts the elements of a sequence into another sequence at a specified index.

    Declaration
    public static IAsyncEnumerable<T> Insert<T>(this IAsyncEnumerable<T> first, IAsyncEnumerable<T> second, Index index)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> first

    The source sequence.

    IAsyncEnumerable<T> second

    The sequence that will be inserted.

    Index index

    The zero-based index at which to insert elements from second.

    Returns
    Type Description
    IAsyncEnumerable<T>

    A sequence that contains the elements of first plus the elements of second inserted at the given index.

    Type Parameters
    Name Description
    T

    Type of the elements of the source sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    first is null.

    ArgumentNullException

    second is null.

    ArgumentOutOfRangeException

    Thrown if index is negative.

    ArgumentOutOfRangeException

    Thrown lazily if index is greater than the length of first. The validation occurs when yielding the next element after having iterated first entirely.

    © SuperLinq Authors. All rights reserved.