Class ChangeSet<TObject, TKey>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
A collection of changes.
public class ChangeSet<TObject, TKey> : List<Change<TObject, TKey>>, IList<Change<TObject, TKey>>, ICollection<Change<TObject, TKey>>, IList, ICollection, IReadOnlyList<Change<TObject, TKey>>, IReadOnlyCollection<Change<TObject, TKey>>, IChangeSet<TObject, TKey>, IChangeSet, IEnumerable<Change<TObject, TKey>>, IEnumerable where TObject : notnull where TKey : notnull
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
- Inheritance
-
ChangeSet<TObject, TKey>
- Implements
-
ICollection<Change<TObject, TKey>>IReadOnlyList<Change<TObject, TKey>>IReadOnlyCollection<Change<TObject, TKey>>IChangeSet<TObject, TKey>IEnumerable<Change<TObject, TKey>>
- Derived
- Inherited Members
- Extension Methods
Constructors
ChangeSet()
Initializes a new instance of the ChangeSet<TObject, TKey> class.
public ChangeSet()
ChangeSet(IEnumerable<Change<TObject, TKey>>)
Initializes a new instance of the ChangeSet<TObject, TKey> class.
public ChangeSet(IEnumerable<Change<TObject, TKey>> collection)
Parameters
collection
IEnumerable<Change<TObject, TKey>>The collection of items to start the change set with.
ChangeSet(int)
Initializes a new instance of the ChangeSet<TObject, TKey> class.
public ChangeSet(int capacity)
Parameters
capacity
intThe initial capacity of the change set.
Fields
Empty
An empty change set.
public static readonly ChangeSet<TObject, TKey> Empty
Field Value
- ChangeSet<TObject, TKey>
Properties
Adds
Gets the number of additions.
public int Adds { get; }
Property Value
Moves
Gets the number of moves.
public int Moves { get; }
Property Value
Refreshes
Gets the number of refreshes.
public int Refreshes { get; }
Property Value
Removes
Gets the number of removes.
public int Removes { get; }
Property Value
Updates
Gets the number of updates.
public int Updates { get; }
Property Value
Methods
ToString()
public override string ToString()