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