[]
        
(Showing Draft Content)

C1.DataCollection.C1EditableDataCollection-1

C1EditableDataCollection<T> Class

Collection which allows performing changes locally until they are committed to the inner source.

Inheritance
C1EditableDataCollection<T>
Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public class C1EditableDataCollection<T> : C1WrapDataCollection<T>, IDataCollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, ISupportIndexing<T>, INotifyPropertyChanged, IDisposable, ISupportSorting, ISupportFiltering, ISupportGrouping, ISupportVirtualization, ISupportConnection, ISupportAsyncLoading<T>, ISupportIncrementalLoading, ISupportRefreshing, ISupportRangeEditing<T>, ISupportEditing<T>, ISupportCreateNewItem<T>, ISupportPaging, ISupportSource where T : class?
Type Parameters
Name Description
T

The type of the items in the collection.

Constructors

Name Description
C1EditableDataCollection()

Initializes a new instance of the C1EditableDataCollection<T> class.

C1EditableDataCollection(IEnumerable)

Initializes a new instance of the C1EditableDataCollection<T> class.

Properties

Name Description
HasChanges

Gets whether there are local changes.

Source

Gets or sets the original source collection.

Methods

Name Description
CommitChangesAsync(CancellationToken)

Commits the local changes to the source.

Dispose(bool)

Called to dispose resources.

UndoChangesAsync(CancellationToken)

Undo the local changes.

Extension Methods