DifferenceSequences(T) Method (IList(T), IList(T), ContinueProcessingPredicate(T))

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)

IDifferenceCollection<T> DifferenceSequences<T>(
	IList<T> left,
	IList<T> right,
	ContinueProcessingPredicate<T> continueProcessingPredicate
)

Parameters

left
Type: System.Collections.Generic.IList<T>

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

right
Type: System.Collections.Generic.IList<T>

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

continueProcessingPredicate
Type: Microsoft.VisualStudio.Text.Differencing.ContinueProcessingPredicate<T>

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

Return Value

Type: Microsoft.VisualStudio.Text.Differencing.IDifferenceCollection<T>

A collection of the differences between the two sequences.

Type Parameters

T

The type of the sequences.

Return to top
Show:
© 2016 Microsoft