[]
Moves an item from the specified position to the new one.
public static Task MoveAsync<T>(this IDataCollection<T> dataCollection, int fromIndex, int toIndex, CancellationToken cancellationToken = default) where T : class?
| Type | Name | Description |
|---|---|---|
| IDataCollection<T> | dataCollection | The data collection. |
| int | fromIndex | From index. |
| int | toIndex | To index. |
| CancellationToken | cancellationToken | The cancellation token. |
| Type | Description |
|---|---|
| Task |
| Name | Description |
|---|---|
| T |
Moves an item from the specified position to the new one.
public static Task MoveAsync<T>(this IDataCollection<T> dataCollection, int fromIndex, int toIndex) where T : class?
| Type | Name | Description |
|---|---|---|
| IDataCollection<T> | dataCollection | The data collection. |
| int | fromIndex | From index. |
| int | toIndex | To index. |
| Type | Description |
|---|---|
| Task |
| Name | Description |
|---|---|
| T |