Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a range of matches between two sequences as a pair of spans of equal length.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.Text.Differencing.Match
Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Class Match _
    Implements IEnumerable(Of Tuple(Of Integer, Integer)),  _
    IEnumerable
public class Match : IEnumerable<Tuple<int, int>>, 
    IEnumerable
public ref class Match : IEnumerable<Tuple<int, int>^>, 
    IEnumerable
type Match =  
    class 
        interface IEnumerable<Tuple<int, int>>
        interface IEnumerable 
    end
public class Match implements IEnumerable<Tuple<int, int>>, IEnumerable
The Match type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | Match | Creates a match from two spans of equal length. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | Left | Get the left-side range | 
| .gif) | Length | Gets the length of the spans. Both spans have equal lengths. | 
| .gif) | Right | Gets the right span. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Determines whether two Match objects have the same left and right spans. (Overrides Object.Equals(Object).) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetEnumerator | Gets an enumerator typed as a Tuple of integers. | 
| .gif) | GetHashCode | Provides a hash function. (Overrides Object.GetHashCode.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .gif) .gif) | IEnumerable.GetEnumerator | Gets an untyped enumerator. | 
Top
Remarks
Given two sequences of characters:
abCCd (left)
abFFd (right)
The generated pairs of matches would be:
(0, 0), (1, 1), (4, 4)
This becomes the two Matches (left-start, right-start, length):
(0, 0, 2) and (4, 4, 1).
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.