[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.MoveAsync

MoveAsync Method

MoveAsync<T>(IDataCollection<T>, int, int, CancellationToken)

Moves an item from the specified position to the new one.

Declaration
public static Task MoveAsync<T>(this IDataCollection<T> dataCollection, int fromIndex, int toIndex, CancellationToken cancellationToken = default) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

int fromIndex

From index.

int toIndex

To index.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task
Type Parameters
Name Description
T

MoveAsync<T>(IDataCollection<T>, int, int)

Moves an item from the specified position to the new one.

Declaration
public static Task MoveAsync<T>(this IDataCollection<T> dataCollection, int fromIndex, int toIndex) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

int fromIndex

From index.

int toIndex

To index.

Returns
Type Description
Task
Type Parameters
Name Description
T