Match Class
Represents a range of matches between two sequences as a pair of spans of equal length.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
| Name | Description | |
|---|---|---|
![]() | Match(Span, Span) | Creates a match from two spans of equal length. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether two Match objects have the same left and right spans.(Overrides Object.Equals(Object).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetEnumerator() | Gets an enumerator typed as a Tuple<T1, T2> of integers. |
![]() | GetHashCode() | Provides a hash function.(Overrides Object.GetHashCode().) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable.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.




