[]
Determines whether the item at fromIndex can be moved to toIndex.
[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 bool CanMove<T>(this IDataCollection<T> dataCollection, int fromIndex, int toIndex) 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 CanMove(Of T As Class)(dataCollection As IDataCollection(Of T), fromIndex As Integer, toIndex As Integer) As Boolean
| Type | Name | Description |
|---|---|---|
| IDataCollection<T> | dataCollection | The data collection. |
| int | fromIndex | The original index. |
| int | toIndex | The destination index. |
| Type | Description |
|---|---|
| bool |
| Name | Description |
|---|---|
| T |