[]
Moves an item from the specified position to the new one.
[UnconditionalSuppressMessage("Trimming", "IL2075", Justification = "The members of ISupportEditing<> class were explicitly annotated so this method can use them safely.")]
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(ISupportEditing<>))]
public static Task MoveAsync<T>(this IDataCollection<T> dataCollection, int fromIndex, int toIndex, CancellationToken cancellationToken = default) where T : class?
<UnconditionalSuppressMessage("Trimming", "IL2075", Justification:="The members of ISupportEditing<> class were explicitly annotated so this method can use them safely.")>
<DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, GetType(ISupportEditing(Of )))>
Public Shared Function MoveAsync(Of T As Class)(dataCollection As IDataCollection(Of T), fromIndex 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 | 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?
Public Shared Function MoveAsync(Of T As Class)(dataCollection As IDataCollection(Of T), fromIndex As Integer, toIndex As Integer) As Task
| Type | Name | Description |
|---|---|---|
| IDataCollection<T> | dataCollection | The data collection. |
| int | fromIndex | From index. |
| int | toIndex | To index. |
| Type | Description |
|---|---|
| Task |
| Name | Description |
|---|---|
| T |