Table of Contents

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

Kind TextDiffKind

What happened to the line.

Old TextDiffLine

The old line; null for an added line.

New TextDiffLine

The new line; null for a removed line.

Properties

Kind

What happened to the line.

public TextDiffKind Kind { get; init; }

Property Value

TextDiffKind

New

The new line; null for a removed line.

public TextDiffLine? New { get; init; }

Property Value

TextDiffLine

Old

The old line; null for an added line.

public TextDiffLine? Old { get; init; }

Property Value

TextDiffLine