ContinueProcessingPredicate<T> Delegate
Visual Studio 2015
A predicate used by IDifferenceService to allow callers to stop differencing prematurely.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
public delegate bool ContinueProcessingPredicate<T>( int leftIndex, IList<T> leftSequence, int longestMatchSoFar )
Parameters
- leftIndex
-
Type:
System.Int32
The current index in the left sequence being differenced.
- leftSequence
-
Type:
System.Collections.Generic.IList<T>
The left sequence being differenced.
- longestMatchSoFar
-
Type:
System.Int32
The length of the longest match so far.
Return Value
Type: System.Booleantrue if the algorithm should continue processing, false to stop the algorithm.
Type Parameters
- T
The type of sequences being differenced.
When the predicate returns false, the difference algorithm stops searching for matches and uses the information it has computed so far to create a IDifferenceCollection<T>.
Show: