Class TextDiffRow
- Namespace
- NuvTools.AspNetCore.Blazor.Components
- Assembly
- NuvTools.AspNetCore.Blazor.dll
One row of a side-by-side comparison.
public sealed record TextDiffRow : IEquatable<TextDiffRow>
- Inheritance
-
TextDiffRow
- Implements
- Inherited Members
Constructors
TextDiffRow(TextDiffKind, TextDiffLine?, TextDiffLine?)
One row of a side-by-side comparison.
public TextDiffRow(TextDiffKind Kind, TextDiffLine? Old, TextDiffLine? New)
Parameters
KindTextDiffKindWhat happened to the line.
OldTextDiffLineThe old line;
nullfor an added line.NewTextDiffLineThe new line;
nullfor a removed line.
Properties
Kind
What happened to the line.
public TextDiffKind Kind { get; init; }
Property Value
New
The new line; null for a removed line.
public TextDiffLine? New { get; init; }
Property Value
Old
The old line; null for an added line.
public TextDiffLine? Old { get; init; }