Partilhar via


ContinueProcessingPredicate<T> Delegate

Definition

A predicate used by IDifferenceService that allows callers to stop differencing prematurely.

generic <typename T>
public delegate bool ContinueProcessingPredicate(int leftIndex, IList<T> ^ leftSequence, int longestMatchSoFar);
public delegate bool ContinueProcessingPredicate<T>(int leftIndex, IList<T> leftSequence, int longestMatchSoFar);
type ContinueProcessingPredicate<'T> = delegate of int * IList<'T> * int -> bool
Public Delegate Function ContinueProcessingPredicate(Of T)(leftIndex As Integer, leftSequence As IList(Of T), longestMatchSoFar As Integer) As Boolean 

Type Parameters

T

The type of sequences being differenced.

Parameters

leftIndex
Int32

The current index in the left sequence being differenced.

leftSequence
IList<T>

The left sequence being differenced.

longestMatchSoFar
Int32

The length of the longest match so far.

Return Value

true if the algorithm should continue processing, false to stop the algorithm.

Remarks

When false is returned, the algorithm stops searching for matches and uses the information it has computed so far to create the IDifferenceCollection<T> that will be returned.

Applies to