다음을 통해 공유


IDifferenceService.DifferenceSequences Method

Definition

Overloads

DifferenceSequences<T>(IList<T>, IList<T>)

Computes the differences between the two sequences.

DifferenceSequences<T>(IList<T>, IList<T>, ContinueProcessingPredicate<T>)

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

DifferenceSequences<T>(IList<T>, IList<T>)

Computes the differences between the two sequences.

public:
generic <typename T>
 Microsoft::VisualStudio::Text::Differencing::IDifferenceCollection<T> ^ DifferenceSequences(System::Collections::Generic::IList<T> ^ left, System::Collections::Generic::IList<T> ^ right);
public Microsoft.VisualStudio.Text.Differencing.IDifferenceCollection<T> DifferenceSequences<T> (System.Collections.Generic.IList<T> left, System.Collections.Generic.IList<T> right);
abstract member DifferenceSequences : System.Collections.Generic.IList<'T> * System.Collections.Generic.IList<'T> -> Microsoft.VisualStudio.Text.Differencing.IDifferenceCollection<'T>
Public Function DifferenceSequences(Of T) (left As IList(Of T), right As IList(Of T)) As IDifferenceCollection(Of T)

Type Parameters

T

The type of the sequences.

Parameters

left
IList<T>

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

right
IList<T>

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

Returns

A collection of the differences between the two sequences.

Applies to

DifferenceSequences<T>(IList<T>, IList<T>, ContinueProcessingPredicate<T>)

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

public:
generic <typename T>
 Microsoft::VisualStudio::Text::Differencing::IDifferenceCollection<T> ^ DifferenceSequences(System::Collections::Generic::IList<T> ^ left, System::Collections::Generic::IList<T> ^ right, Microsoft::VisualStudio::Text::Differencing::ContinueProcessingPredicate<T> ^ continueProcessingPredicate);
public Microsoft.VisualStudio.Text.Differencing.IDifferenceCollection<T> DifferenceSequences<T> (System.Collections.Generic.IList<T> left, System.Collections.Generic.IList<T> right, Microsoft.VisualStudio.Text.Differencing.ContinueProcessingPredicate<T> continueProcessingPredicate);
abstract member DifferenceSequences : System.Collections.Generic.IList<'T> * System.Collections.Generic.IList<'T> * Microsoft.VisualStudio.Text.Differencing.ContinueProcessingPredicate<'T> -> Microsoft.VisualStudio.Text.Differencing.IDifferenceCollection<'T>
Public Function DifferenceSequences(Of T) (left As IList(Of T), right As IList(Of T), continueProcessingPredicate As ContinueProcessingPredicate(Of T)) As IDifferenceCollection(Of T)

Type Parameters

T

The type of the sequences.

Parameters

left
IList<T>

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

right
IList<T>

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

continueProcessingPredicate
ContinueProcessingPredicate<T>

A predicate that will be called on each step through the left sequence, with the option of stopping the algorithm prematurely.

Returns

A collection of the differences between the two sequences.

Applies to