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>>Inheritance
Section titled “Inheritance”Object → DiffEntry<T>
Implements
Section titled “Implements”Constructors
Section titled “Constructors”DiffEntry(DiffKind, T?, T?, string?)
Section titled “DiffEntry(DiffKind, T?, T?, string?)”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)Properties
Section titled “Properties”ChangeDescription
Section titled “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; }Methods
Section titled “Methods”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)Equals(DiffEntry<T>?)
Section titled “Equals(DiffEntry<T>?)”Parameters:
other(DiffEntry`1)
Returns: Boolean
public bool Equals(DiffEntry<T>? other)Equals(object?)
Section titled “Equals(object?)”Parameters:
obj(Object)
Returns: Boolean
public override bool Equals(object? obj)GetHashCode()
Section titled “GetHashCode()”Returns: Int32
public override int GetHashCode()ToString()
Section titled “ToString()”Returns: String
public override string ToString()Members
Section titled “Members”operator !=(DiffEntry<T>?, DiffEntry<T>?)
Section titled “operator !=(DiffEntry<T>?, DiffEntry<T>?)”Parameters:
left(DiffEntry`1)right(DiffEntry`1)
Returns: Boolean
public static bool operator !=(DiffEntry<T>? left, DiffEntry<T>? right)operator ==(DiffEntry<T>?, DiffEntry<T>?)
Section titled “operator ==(DiffEntry<T>?, DiffEntry<T>?)”Parameters:
left(DiffEntry`1)right(DiffEntry`1)
Returns: Boolean
public static bool operator ==(DiffEntry<T>? left, DiffEntry<T>? right)