Skip to content
ConsoleMonster

API Reference

Class

ObjectChange

Namespace ConsoleMonster.Changes
Assembly ConsoleMonster
Modifiers sealed

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

Accepted by parameters 1

Constructors

public ObjectChange(ChangeKind kind, String key, Object? before, Object? after, IReadOnlyList<PropertyChange>? properties = null) #

Creates an object change.

Parameters

kind ConsoleMonster.Changes.ChangeKind requiredposition: 0
The kind.
key System.String requiredposition: 1
The key the objects were matched by.
before System.Object? requiredposition: 2
The old object, or null when added.
after System.Object? requiredposition: 3
The new object, or null when removed.
properties System.Collections.Generic.IReadOnlyList<ConsoleMonster.Changes.PropertyChange>? = null optionalposition: 4
The changed properties.

Properties

public ChangeKind Kind { get; } #

The kind.

public String Key { get; } #

The key the objects were matched by.

public Object? Before { get; } #

The old object, or null when added.

public Object? After { get; } #

The new object, or null when removed.

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.