Skip to content

DiffEntry<T>

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

A single diff entry wrapping an item from either side.

public sealed record DiffEntry<T> : IEquatable<DiffEntry<T>>

ObjectDiffEntry<T>

A single diff entry wrapping an item from either side.

Parameters:

  • Kind (DiffKind): Whether the item was added, removed, or changed.
  • Left (<T>): The item from the left (baseline) assembly, or null if added.
  • Right (<T>): The item from the right (updated) assembly, or null if removed.
  • ChangeDescription (String): A human-readable description of what changed, or null.
public DiffEntry(DiffKind Kind, T? Left, T? Right, string? ChangeDescription)

A human-readable description of what changed, or null.

Returns: String

public string? ChangeDescription { get; init; }

Whether the item was added, removed, or changed.

Returns: DiffKind

public DiffKind Kind { get; init; }

The item from the left (baseline) assembly, or null if added.

Returns: <T>

public T? Left { get; init; }

The item from the right (updated) assembly, or null if removed.

Returns: <T>

public T? Right { get; init; }