Skip to content
ConsoleMonster
Class

TextDiffLine

ConsoleMonster.Changes

Namespace
ConsoleMonster.Changes
Assembly
ConsoleMonster
Modifiers
sealed

One unchanged, removed or added line, with its original one-based line numbers.

Inheritance

  • object
  • TextDiffLine

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Properties

public ChangeKind Kind { get; } #

Whether this line is unchanged, removed or added.

public string Text { get; } #

The original line content, without its line ending.

public int? ReferenceLineNumber { get; } #

The original reference line number, or null for an added line.

public int? DifferenceLineNumber { get; } #

The original difference line number, or null for a removed line.

public bool HasLineEnding { get; } #

Whether the source line has a line ending. CRLF, LF and CR are compared as equivalent endings.