[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.CanMove

CanMove Method

CanMove<T>(IDataCollection<T>, int, int)

Determines whether the item at fromIndex can be moved to toIndex.

Declaration
public static bool CanMove<T>(this IDataCollection<T> dataCollection, int fromIndex, int toIndex) where T : class?
Public Shared Function CanMove(Of T As Class)(dataCollection As IDataCollection(Of T), fromIndex As Integer, toIndex As Integer) As Boolean
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

int fromIndex

The original index.

int toIndex

The destination index.

Returns
Type Description
bool
Type Parameters
Name Description
T