Enum
OfficeDiffAlgorithm
OfficeIMO.Diff
Selects the sequence-alignment strategy used by OfficeDiff.
Inheritance
- Enum
- OfficeDiffAlgorithm
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 5
- Field OfficeDiffAlgorithm.Histogram
- Field OfficeDiffAlgorithm.Myers
- Field OfficeDiffAlgorithm.Patience
- Property OfficeDiffOptions.Algorithm
- Property OfficeDiffResult<T>.Algorithm
Inherited Methods
ToString 4 overloads
public string ToString(IFormatProvider? provider) #Inherited from Enum
Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
Returns
stringpublic string ToString(string? format, IFormatProvider? provider) #Inherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format string?
- provider IFormatProvider?
Returns
stringValues
public const OfficeDiffAlgorithm Myers #Myers' O(ND) algorithm with linear-space refinement. Produces a minimal edit script unless a work limit is reached.
Value:
0public const OfficeDiffAlgorithm Patience #Patience diff: aligns on items that occur exactly once on both sides, then uses Myers between anchors. Often reads better for moved or repeated blocks; not guaranteed minimal.
Value:
1public const OfficeDiffAlgorithm Histogram #Histogram diff: aligns on the rarest common items first, then uses Myers where no rare anchor exists. Not guaranteed minimal.
Value:
2