Class
ChangeSet
ConsoleMonster.Changes
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
- Property ChangeView.Changes
- Method ObjectDiff.Compare
Accepted by parameters 4
- Method ChangePreview.Ask
- Method ChangePreview.Confirm
- Method ChangePreview.Show
- Constructor ChangeView.ChangeView
Constructors
ChangeSet 2 overloads
public ChangeSet(IReadOnlyList<ObjectChange> changes) #Creates a change set.
Parameters
- changes System.Collections.Generic.IReadOnlyList<ConsoleMonster.Changes.ObjectChange>
- 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>
- The object changes.
- unchanged int
- The number of unchanged objects, listed or not.
Inherited Methods
Properties
public IReadOnlyList<ObjectChange> Changes { get; } #Every object, in a stable order (changes first by kind, then unchanged ones).
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 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).