[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.CanReplace

CanReplace Method

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

Determines whether the item at the specified index can be replaced in the collection.

Declaration
public static bool CanReplace<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 of the item that would be replaced.

T item

The item that would be replaced.

Returns
Type Description
bool
Type Parameters
Name Description
T