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>的差异算法停止搜索匹配项并使用该信息。