Skip to content
ConsoleMonster
Class

ChangeSet

ConsoleMonster.Changes

Namespace
ConsoleMonster.Changes
Assembly
ConsoleMonster
Modifiers
sealed

The result of a comparison, with counts by kind.

Inheritance

  • object
  • ChangeSet

Usage

Explore 6 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 4

Constructors

ChangeSet 2 overloads
public ChangeSet(IReadOnlyList<ObjectChange> changes) #

Creates a change set.

Parameters

changes System.Collections.Generic.IReadOnlyList<ConsoleMonster.Changes.ObjectChange> required
The object changes.
public ChangeSet(IReadOnlyList<ObjectChange> changes, int unchanged) #

Creates a change set that also counts unchanged objects that are not listed.

Parameters

changes System.Collections.Generic.IReadOnlyList<ConsoleMonster.Changes.ObjectChange> required
The object changes.
unchanged int required
The number of unchanged objects, listed or not.

Properties

public IReadOnlyList<ObjectChange> Changes { get; } #

Every object, in a stable order (changes first by kind, then unchanged ones).

public int Added { get; } #

Objects only in the new set.

public int Removed { get; } #

Objects only in the old set.

public int Changed { get; } #

Objects in both with different values.

public int Unchanged { get; private set; } #

Objects in both with the same values (counted even when not listed).

public int CaseOnly { get; } #

The number of listed property differences ignored because only letter case differs.

public bool HasChanges { get; } #

Whether anything was added, removed or changed.

public bool IsDestructive { get; } #

Whether the change removes objects: the case for a typed confirmation.

public IReadOnlyList<string> NotCompared { get; internal set; } #

The member paths that were not compared because reading them stalled (neither changed nor the same).