Поделиться через


IDifferenceCollection<T> Interface

Represents a collection of Difference objects.

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Декларация
Public Interface IDifferenceCollection(Of T) _
    Inherits IEnumerable(Of Difference), IEnumerable
public interface IDifferenceCollection<T> : IEnumerable<Difference>, 
    IEnumerable
generic<typename T>
public interface class IDifferenceCollection : IEnumerable<Difference^>, 
    IEnumerable
type IDifferenceCollection<'T> =  
    interface
        interface IEnumerable<Difference>
        interface IEnumerable
    end
JScript does not support generic types or methods.

Type Parameters

  • T
    The element type of the compared lists.

The IDifferenceCollection<T> type exposes the following members.

Properties

  Name Description
Public property Differences Returns the difference collection as a list.
Public property LeftSequence Gets the left sequence that was used to create this difference collection.
Public property MatchSequence Gets the original match sequence that was used to create this difference collection.
Public property RightSequence Gets the right sequence that was used to create this difference collection.

Top

Methods

  Name Description
Public method GetEnumerator() Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<Difference>.)
Public method GetEnumerator() Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)

Top

Remarks

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

See Also

Reference

Microsoft.VisualStudio.Text.Differencing Namespace