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; }

Deconstruct(out DiffKind, out T?, out T?, out string?)

Section titled “Deconstruct(out DiffKind, out T?, out T?, out string?)”

Parameters:

public void Deconstruct(out DiffKind Kind, out T? Left, out T? Right, out string? ChangeDescription)

Parameters:

Returns: Boolean

public bool Equals(DiffEntry<T>? other)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

Parameters:

Returns: Boolean

public static bool operator !=(DiffEntry<T>? left, DiffEntry<T>? right)

Parameters:

Returns: Boolean

public static bool operator ==(DiffEntry<T>? left, DiffEntry<T>? right)