[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.MoveRangeAsync

MoveRangeAsync Method

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

Moves the items specified by fromIndex and count to the new toIndex position.

Declaration
public static Task MoveRangeAsync<T>(this IDataCollection<T> dataCollection, int fromIndex, int count, int toIndex, CancellationToken cancellationToken = default) where T : class?
Public Shared Function MoveRangeAsync(Of T As Class)(dataCollection As IDataCollection(Of T), fromIndex As Integer, count As Integer, toIndex As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

int fromIndex

From index.

int count

The number of items to be moved.

int toIndex

To index.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task
Type Parameters
Name Description
T