DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / CanReplace<T> Method
The data collection.
The index of the item that would be replaced.
The item that would be replaced.

In This Topic
    CanReplace<T> Method (IDataCollectionEx)
    In This Topic
    Determines whether the item at the specified index can be replaced in the collection.
    Syntax
    'Declaration
     
    Public Shared Function CanReplace(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal index As Integer, _
       ByVal item As T _
    ) As Boolean
    public static bool CanReplace<T>( 
       IDataCollection<T> dataCollection,
       int index,
       T item
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    index
    The index of the item that would be replaced.
    item
    The item that would be replaced.

    Type Parameters

    T
    See Also