UnifiedDiffOptions Class

Options of UnifiedDiff.Create.

public sealed class UnifiedDiffOptions

Constructors

NameDescription
UnifiedDiffOptions()

UnifiedDiffOptions()

UnifiedDiffOptions.cs
public UnifiedDiffOptions()

No documentation is available.

Properties

NameDescription
AlgorithmGets or sets the algorithm used to compare the lines. Defaults to TextDiffAlgorithm.Myers.
ContextLinesGets or sets the number of unchanged lines written before and after each change. Defaults to 3, as diff -u and git diff.
NewFileNameGets or sets the name written after +++, the name of the new text. Defaults to "b".
OldFileNameGets or sets the name written after ---, the name of the old text. Defaults to "a".
TimeoutGets or sets the time limit of the diff. See TextDiffOptions.Timeout.

Gets or sets the algorithm used to compare the lines. Defaults to TextDiffAlgorithm.Myers.

public TextDiffAlgorithm Algorithm { get; set; }

Property value

TextDiffAlgorithm

Gets or sets the number of unchanged lines written before and after each change. Defaults to 3, as diff -u and git diff.

public int ContextLines { get; set; }

Property value

int

Remarks

Changes separated by at most twice this number of unchanged lines share a hunk.

Gets or sets the name written after +++, the name of the new text. Defaults to "b".

public string NewFileName { get; set; }

Property value

string

Gets or sets the name written after ---, the name of the old text. Defaults to "a".

public string OldFileName { get; set; }

Property value

string

Gets or sets the time limit of the diff. See TextDiffOptions.Timeout.

public TimeSpan? Timeout { get; set; }

Property value

TimeSpan?