UnifiedDiffOptions Class
Options of UnifiedDiff.Create.
public sealed class UnifiedDiffOptionsConstructors
| Name | Description |
|---|---|
| UnifiedDiffOptions() |
UnifiedDiffOptions()
UnifiedDiffOptions.cspublic UnifiedDiffOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Algorithm | Gets or sets the algorithm used to compare the lines. Defaults to TextDiffAlgorithm.Myers. |
| ContextLines | Gets or sets the number of unchanged lines written before and after each change. Defaults to 3, as diff -u and git diff. |
| NewFileName | Gets or sets the name written after +++, the name of the new text. Defaults to "b". |
| OldFileName | Gets or sets the name written after ---, the name of the old text. Defaults to "a". |
| Timeout | Gets or sets the time limit of the diff. See TextDiffOptions.Timeout. |
Algorithm
UnifiedDiffOptions.csGets or sets the algorithm used to compare the lines. Defaults to TextDiffAlgorithm.Myers.
public TextDiffAlgorithm Algorithm { get; set; }Property value
ContextLines
UnifiedDiffOptions.csNewFileName
UnifiedDiffOptions.csOldFileName
UnifiedDiffOptions.csTimeout
UnifiedDiffOptions.csGets or sets the time limit of the diff. See TextDiffOptions.Timeout.
public TimeSpan? Timeout { get; set; }