[]
Inserts the specified item at the specified index in the collection.
public static Task<int> InsertRangeAsync<T>(this IDataCollection<T> dataCollection, int index, IEnumerable<T> items, CancellationToken cancellationToken = default) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
int | index | The index where the item will be inserted. |
IEnumerable<T> | items | The items to be inserted. |
CancellationToken | cancellationToken | The cancellation token. |
Type | Description |
---|---|
Task<int> |
Name | Description |
---|---|
T |