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.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.