Diff : Algorithm.Diff Namespace
Merge+Hunk

A segment of the orginal document in which no revised documents had changes, or one or more revised documents had changes.

public class Merge+Hunk : Hunk


Remarks
Members

See Also: Inherited members from Hunk.

Methods
ChangedIndex () : int
The index of the revised document with the changes in this hunk.
ChangesHunks (int) : Diff+Hunk[]
Gets an array of smaller hunks for just one of the revised documents.
Member Details
ChangedIndex
public int ChangedIndex ()

The index of the revised document with the changes in this hunk.

Returns
The index of the revised document with the changes in this hunk, if there are no conflicts. If there are conflicts, an exception is thrown.
Remarks
None.

ChangesHunks
public Diff+Hunk[] ChangesHunks (int index)

Gets an array of smaller hunks for just one of the revised documents.

Parameters
index
A 0-based index indicating which revision document to return the hunks of.
Returns
An array of hunks comparing the original document with the indicated revised document.
Remarks
The hunks returned by this method are useful because subportions of the revised document within this hunk may be unchanged from the original document.