[]
        
(Showing Draft Content)

C1.DataCollection.ISupportEditing-1

ISupportEditing<T> Interface

Specifies a calling contract for collections that support editing.

Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public interface ISupportEditing<in T>
Type Parameters
Name Description
T

Methods

Name Description
CanInsert(int, T)

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

CanMove(int, int)

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

CanRemove(int)

Determines whether the item at the specified index can be removed from the collection.

CanReplace(int, T)

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

InsertAsync(int, T, CancellationToken)

Inserts the specified item at the specified index in the collection.

MoveAsync(int, int, CancellationToken)

Moves an item from the specified fromIndex to toIndex.

RemoveAsync(int, CancellationToken)

Removes the item at the specified index from the collection.

ReplaceAsync(int, T, CancellationToken)

Replaces the item at the specified index by the specified item.