IgnoreDifferencePredicate 委托

定义

一个自定义谓词,用于 IDifferenceBuffer 有选择地忽略差异。

public delegate bool IgnoreDifferencePredicate(Difference ^ lineDifference, ITextSnapshot ^ leftSnapshot, ITextSnapshot ^ rightSnapshot);
public delegate bool IgnoreDifferencePredicate(Difference lineDifference, ITextSnapshot leftSnapshot, ITextSnapshot rightSnapshot);
type IgnoreDifferencePredicate = delegate of Difference * ITextSnapshot * ITextSnapshot -> bool
Public Delegate Function IgnoreDifferencePredicate(lineDifference As Difference, leftSnapshot As ITextSnapshot, rightSnapshot As ITextSnapshot) As Boolean 

参数

lineDifference
Difference

已更改的行。 LeftRight 范围分别是和中的行 leftSnapshotrightSnapshot

leftSnapshot
ITextSnapshot

要比较的的快照 LeftBuffer

rightSnapshot
ITextSnapshot

要比较的的快照 RightBuffer

返回值

Boolean

如果 要忽略给定的差异,则为 true,若要将其包含在差异列表中, 则为 true。

适用于