Condividi tramite


IDifferenceService.DifferenceSequences<T> Method (IList<T>, IList<T>, ContinueProcessingPredicate<T>)

Calculates the differences between the two sequences. The supplied predicate will be called on each step through the left sequence.

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

Syntax

'Declaration
Function DifferenceSequences(Of T) ( _
    left As IList(Of T), _
    right As IList(Of T), _
    continueProcessingPredicate As ContinueProcessingPredicate(Of T) _
) As IDifferenceCollection(Of T)
IDifferenceCollection<T> DifferenceSequences<T>(
    IList<T> left,
    IList<T> right,
    ContinueProcessingPredicate<T> continueProcessingPredicate
)
generic<typename T>
IDifferenceCollection<T>^ DifferenceSequences(
    IList<T>^ left, 
    IList<T>^ right, 
    ContinueProcessingPredicate<T>^ continueProcessingPredicate
)
abstract DifferenceSequences : 
        left:IList<'T> * 
        right:IList<'T> * 
        continueProcessingPredicate:ContinueProcessingPredicate<'T> -> IDifferenceCollection<'T> 
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the sequences.

Parameters

  • left
    Type: IList<T>

    The left sequence. In most cases this is the "old" sequence.

  • right
    Type: IList<T>

    The right sequence. In most cases this is the "new" sequence.

Return Value

Type: Microsoft.VisualStudio.Text.Differencing.IDifferenceCollection<T>
A collection of the differences between the two sequences.

.NET Framework Security

See Also

Reference

IDifferenceService Interface

DifferenceSequences Overload

Microsoft.VisualStudio.Text.Differencing Namespace