[]
        
(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
[UnconditionalSuppressMessage("Trimming", "IL2075", Justification = "The members of ISupportRangeEditing<> class were explicitly annotated so this method can use them safely.")]
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(ISupportRangeEditing<>))]
public static Task MoveRangeAsync<T>(this IDataCollection<T> dataCollection, int fromIndex, int count, int toIndex, CancellationToken cancellationToken = default) where T : class?
<UnconditionalSuppressMessage("Trimming", "IL2075", Justification:="The members of ISupportRangeEditing<> class were explicitly annotated so this method can use them safely.")>
<DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, GetType(ISupportRangeEditing(Of )))>
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