Share via


IDifferenceCollection<T> Interface

Definition

Represents a collection of Difference objects extracted from two lists of same-typed elements, given a maximal match sequence generated from a difference algorithm.

generic <typename T>
public interface class IDifferenceCollection : System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Differencing::Difference ^>
public interface IDifferenceCollection<T> : System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Differencing.Difference>
type IDifferenceCollection<'T> = interface
    interface seq<Difference>
    interface IEnumerable
Public Interface IDifferenceCollection(Of T)
Implements IEnumerable(Of Difference)

Type Parameters

T

The element type of the compared lists.

Derived
Implements

Remarks

This collection is extracted from two lists of elements of the same type, given a maximal match sequence generated from a difference algorithm.

Properties

Differences

Returns the difference collection as a list.

LeftSequence

Gets the left sequence that was used to create this difference collection.

MatchSequence

Gets the original match sequence that was used to create this difference collection.

RightSequence

Gets the right sequence that was used to create this difference collection.

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to