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