Table of Contents

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
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 int

The 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

int

Moves

Gets the number of moves.

public int Moves { get; }

Property Value

int

Refreshes

Gets the number of refreshes.

public int Refreshes { get; }

Property Value

int

Removes

Gets the number of removes.

public int Removes { get; }

Property Value

int

Replaced

Gets the number of updates.

public int Replaced { get; }

Property Value

int

TotalChanges

Gets the total number if individual item changes.

public int TotalChanges { get; }

Property Value

int

Methods

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.