Class ChangeSet<T>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
A set of changes which has occurred since the last reported change.
public class ChangeSet<T> : List<Change<T>>, IList<Change<T>>, ICollection<Change<T>>, IList, ICollection, IReadOnlyList<Change<T>>, IReadOnlyCollection<Change<T>>, IChangeSet<T>, IEnumerable<Change<T>>, IEnumerable, IChangeSet where T : notnull
Type Parameters
T
The type of the object.
- Inheritance
-
ChangeSet<T>
- Implements
-
ICollection<Change<T>>IReadOnlyList<Change<T>>IChangeSet<T>IEnumerable<Change<T>>
- Inherited Members
- Extension Methods
Constructors
ChangeSet()
Initializes a new instance of the ChangeSet<T> class.
public ChangeSet()
ChangeSet(IEnumerable<Change<T>>)
Initializes a new instance of the ChangeSet<T> class.
public ChangeSet(IEnumerable<Change<T>> items)
Parameters
items
IEnumerable<Change<T>>The items.
Exceptions
- ArgumentNullException
items.
ChangeSet(int)
Initializes a new instance of the ChangeSet<T> class.
public ChangeSet(int capacity)
Parameters
capacity
intThe initial capacity of the change set.
Fields
Empty
An empty change set.
public static readonly IChangeSet<T> Empty
Field Value
- IChangeSet<T>
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
Replaced
Gets the number of updates.
public int Replaced { get; }
Property Value
TotalChanges
Gets the total number if individual item changes.
public int TotalChanges { get; }
Property Value
Methods
ToString()
Returns a string that represents this instance.
public override string ToString()