[]
This method is called when an item is replaced in the collection.
protected virtual Task<int> ReplaceAsyncOverride(int index, T item, CancellationToken cancellationToken)
Type | Name | Description |
---|---|---|
int | index | The index of the replaced item. |
T | item | The replaced item. |
CancellationToken | cancellationToken | The cancellation token. |
Type | Description |
---|---|
Task<int> |
CanReplace(int, T) must return true to enable this method.