API Reference
Class
ObjectChange
One object of a comparison: added, removed, changed (with its property changes) or unchanged.
Inheritance
- Object
- ObjectChange
Usage
Explore 2 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 1
- Property ChangeSet.Changes
Accepted by parameters 1
- Constructor ChangeSet.ChangeSet
Constructors
public ObjectChange(ChangeKind kind, String key, Object? before, Object? after, IReadOnlyList<PropertyChange>? properties = null) #Creates an object change.
Parameters
- kind ConsoleMonster.Changes.ChangeKind
- The kind.
- key System.String
- The key the objects were matched by.
- before System.Object?
- The old object, or null when added.
- after System.Object?
- The new object, or null when removed.
- properties System.Collections.Generic.IReadOnlyList<ConsoleMonster.Changes.PropertyChange>? = null
- The changed properties.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public IReadOnlyList<PropertyChange> Properties { get; } #The changed properties (empty unless ObjectChange.Kind is Changed).
public String? Summary { get; internal set; } #A short description of an added or removed object (its first compared properties, such as Title: Admin; Enabled: True), or the value itself for simple values; null when not described.
public IReadOnlyList<PropertyChange> Values { get; internal set; } #The compared simple properties of an added or removed object (not its key, not empty), each with the value on its side: PropertyChange.After for added objects, PropertyChange.Before for removed ones. Empty for other kinds and for simple values.