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
|
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<T> | A sequence that contains the elements of |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the elements of the source sequence. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentNullException |
|
| ArgumentOutOfRangeException | Thrown if |
| ArgumentOutOfRangeException | Thrown lazily if |
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
|
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<T> | A sequence that contains the elements of |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the elements of the source sequence. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentNullException |
|
| ArgumentOutOfRangeException | Thrown if |
| ArgumentOutOfRangeException | Thrown lazily if |