[]
Moves the items specified by fromIndex and count to the new toIndex position.
[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
| 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. |
| Type | Description |
|---|---|
| Task |
| Name | Description |
|---|---|
| T |