IDifferenceCollection<T> Interface
Represents a collection of Difference objects.
Namespace: Microsoft.VisualStudio.Text.Differencing
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'宣告
Public Interface IDifferenceCollection(Of T) _
Inherits IEnumerable(Of Difference), IEnumerable
public interface IDifferenceCollection<T> : IEnumerable<Difference>,
IEnumerable
generic<typename T>
public interface class IDifferenceCollection : IEnumerable<Difference^>,
IEnumerable
type IDifferenceCollection<'T> =
interface
interface IEnumerable<Difference>
interface IEnumerable
end
JScript does not support generic types or methods.
Type Parameters
- T
The element type of the compared lists.
The IDifferenceCollection<T> type exposes the following members.
Properties
Name | Description | |
---|---|---|
Differences | Returns the difference collection as a list. | |
LeftSequence | Gets the left sequence that was used to create this difference collection. | |
MatchSequence | Gets the original match sequence that was used to create this difference collection. | |
RightSequence | Gets the right sequence that was used to create this difference collection. |
Top
Methods
Name | Description | |
---|---|---|
GetEnumerator() | Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<Difference>.) | |
GetEnumerator() | Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.) |
Top
Remarks
This collection is extracted from two lists of elements of the same type, given a maximal match sequence generated from a difference algorithm.