共用方式為


ContinueProcessingPredicate<T> 委派

述詞所使用的IDifferenceService讓呼叫端停止過早差異比較。

命名空間:  Microsoft.VisualStudio.Text.Differencing
組件:  Microsoft.VisualStudio.Text.Data (在 Microsoft.VisualStudio.Text.Data.dll 中)

語法

'宣告
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 不支援泛型型別或方法。

類型參數

  • T
    序列所 differenced 的型別。

參數

  • leftIndex
    類型:Int32

    左的順序被 differenced 在目前的索引。

  • leftSequence
    類型:IList<T>

    左的順序被 differenced。

  • longestMatchSoFar
    類型:Int32

    到目前為止最長的比對的長度。

傳回值

類型:Boolean
true 如果演算法應該繼續處理, false停止演算法。

備註

當述詞傳回false,差異演算法停止搜尋相符項目,並使用它到目前為止已計算的資訊來建立IDifferenceCollection<T>

請參閱

參考

Microsoft.VisualStudio.Text.Differencing 命名空間