Diff : Algorithm.Diff Namespace
Diff+Hunk

A hunk is a segment of a diff. It relates a region of the base document to a region of the changed document.

public class Diff+Hunk : Hunk


Remarks
Hunks are not only used for parts of a diff in which there are changes. Hunks are created such that every line in each list is represented by some hunk.
Members

See Also: Inherited members from Hunk.

Properties
Left [read-only]
Range . The range of the first list that this hunk represents.
Right [read-only]
Range . The range of the second list that this hunk represents.
Methods
DiffString () : string
Returns this hunk as a string in a diff-style format.
Member Details
DiffString
public string DiffString ()

Returns this hunk as a string in a diff-style format.

Returns
A string representation of this hunk, showing the corresponding lines in the first list followed by the corresponding lines in the second list.
Remarks
None.

Left
public Range Left { get; }

The range of the first list that this hunk represents.

Value
The range of the first list that this hunk represents.
Remarks
None.

Right
public Range Right { get; }

The range of the second list that this hunk represents.

Value
The range of the second list that this hunk represents.
Remarks
None.