TextDiffHierarchyEntry Class
One chunk of a hierarchy diff, with the finer diff of its two sides when there is a deeper chunking level.
public sealed class TextDiffHierarchyEntryConstructors
| Name | Description |
|---|---|
| TextDiffHierarchyEntry(TextDiffHierarchyOperation, string?, string?, IReadOnlyList<TextDiffHierarchyEntry>?) |
TextDiffHierarchyEntry(TextDiffHierarchyOperation, string?, string?, IReadOnlyList<TextDiffHierarchyEntry>?)
TextDiffHierarchyEntry.cspublic TextDiffHierarchyEntry(TextDiffHierarchyOperation operation, string? oldText, string? newText, IReadOnlyList<TextDiffHierarchyEntry>? children = null)Parameters
operationTextDiffHierarchyOperationoldTextstring?newTextstring?childrenIReadOnlyList<TextDiffHierarchyEntry>?
No documentation is available.
Properties
| Name | Description |
|---|---|
| Children | Gets the diff of TextDiffHierarchyEntry.OldText against TextDiffHierarchyEntry.NewText at the next chunking level. Empty unless TextDiffHierarchyEntry.Operation is TextDiffHierarchyOperation.Replace and a finer chunker was supplied. |
| NewText | Gets the chunk as it appears in the new text, or null when TextDiffHierarchyEntry.Operation is TextDiffHierarchyOperation.Delete. |
| OldText | Gets the chunk as it appears in the old text, or null when TextDiffHierarchyEntry.Operation is TextDiffHierarchyOperation.Insert. |
| Operation | Gets what happened to this chunk between the two texts. |
Children
TextDiffHierarchyEntry.csGets the diff of TextDiffHierarchyEntry.OldText against TextDiffHierarchyEntry.NewText at the next chunking level. Empty unless TextDiffHierarchyEntry.Operation is TextDiffHierarchyOperation.Replace and a finer chunker was supplied.
public IReadOnlyList<TextDiffHierarchyEntry> Children { get; }Property value
NewText
TextDiffHierarchyEntry.csGets the chunk as it appears in the new text, or null when TextDiffHierarchyEntry.Operation is TextDiffHierarchyOperation.Delete.
public string? NewText { get; }Property value
OldText
TextDiffHierarchyEntry.csGets the chunk as it appears in the old text, or null when TextDiffHierarchyEntry.Operation is TextDiffHierarchyOperation.Insert.
public string? OldText { get; }Property value
Operation
TextDiffHierarchyEntry.csGets what happened to this chunk between the two texts.
public TextDiffHierarchyOperation Operation { get; }