Match Class

 

Represents a range of matches between two sequences as a pair of spans of equal length.

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

System.Object
  Microsoft.VisualStudio.Text.Differencing.Match

public class Match : IEnumerable<Tuple<intint>>, IEnumerable

NameDescription
System_CAPS_pubmethodMatch(Span, Span)

Creates a match from two spans of equal length.

NameDescription
System_CAPS_pubpropertyLeft

Get the left-side range

System_CAPS_pubpropertyLength

Gets the length of the spans. Both spans have equal lengths.

System_CAPS_pubpropertyRight

Gets the right span.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether two Match objects have the same left and right spans.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Gets an enumerator typed as a Tuple<T1, T2> of integers.

System_CAPS_pubmethodGetHashCode()

Provides a hash function.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Gets an untyped enumerator.

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).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: