Compartilhar via


ContinueProcessingPredicate<T> Delegate

A predicate used by IDifferenceService to allow callers to stop differencing prematurely.

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Delegate Function ContinueProcessingPredicate(Of T) ( _
    leftIndex As Integer, _
    leftSequence As IList(Of T), _
    longestMatchSoFar As Integer _
) As Boolean
public delegate bool ContinueProcessingPredicate<T>(
    int leftIndex,
    IList<T> leftSequence,
    int longestMatchSoFar
)
generic<typename T>
public delegate bool ContinueProcessingPredicate(
    int leftIndex, 
    IList<T>^ leftSequence, 
    int longestMatchSoFar
)
type ContinueProcessingPredicate = 
    delegate of  
        leftIndex:int * 
        leftSequence:IList<'T> * 
        longestMatchSoFar:int -> bool
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of sequences being differenced.

Parameters

  • leftIndex
    Type: Int32

    The current index in the left sequence being differenced.

  • leftSequence
    Type: IList<T>

    The left sequence being differenced.

  • longestMatchSoFar
    Type: Int32

    The length of the longest match so far.

Return Value

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

Remarks

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>.

See Also

Reference

Microsoft.VisualStudio.Text.Differencing Namespace