[]
Replaces the item at the specified index by the specified item.
public static Task<int> ReplaceAsync<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. |
| T | item | The item. |
| CancellationToken | cancellationToken | The cancellation token. |
| Type | Description |
|---|---|
| Task<int> |
| Name | Description |
|---|---|
| T |
Replaces the item at the specified index by the specified item.
public static Task<int> ReplaceAsync<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. |
| T | item | The item. |
| Type | Description |
|---|---|
| Task<int> |
| Name | Description |
|---|---|
| T |