共用方式為


IDifferenceService Interface

Determines the differences between two sequences, based on adding or removing elements (but not translating or copying elements).

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

Syntax

'宣告
Public Interface IDifferenceService
public interface IDifferenceService
public interface class IDifferenceService
type IDifferenceService =  interface end
public interface IDifferenceService

Methods

  Name Description
Public method DifferenceSequences<T>(IList<T>, IList<T>) Calculates the differences between the two sequences.
Public method DifferenceSequences<T>(IList<T>, IList<T>, ContinueProcessingPredicate<T>) Calculates the differences between the two sequences. The supplied predicate will be called on each step through the left sequence.

Top

Remarks

This is a MEF component part, and should be imported as follows:

[Import]
internal IDifferenceService differenceService = null;

See Also

Reference

Microsoft.VisualStudio.Text.Differencing Namespace