[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.CanInsert

CanInsert Method

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

Determines whether a new item can be inserted in the collection at the specified index.

Declaration
public static bool CanInsert<T>(this IDataCollection<T> dataCollection, int index, T item) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

int index

The index where the items would be inserted.

T item

The item that would be inserted.

Returns
Type Description
bool
Type Parameters
Name Description
T