Match 클래스

정의

두 시퀀스 간의 일치 범위를 동일한 길이의 범위 쌍으로 나타냅니다.

public ref class Match : System::Collections::Generic::IEnumerable<Tuple<int, int> ^>
public class Match : System.Collections.Generic.IEnumerable<Tuple<int,int>>
type Match = class
    interface seq<int * int>
    interface IEnumerable
Public Class Match
Implements IEnumerable(Of Tuple(Of Integer, Integer))
상속
Match
구현

설명

abCCd(왼쪽) abFFd(오른쪽) 생성된 일치 쌍은 다음과 같습니다. (0, 0), (1, 1), (4, 4) 일치 항목(왼쪽 시작, 오른쪽 시작, 길이): (0, 0, 2) 및 (4, 4, 1)

생성자

Match(Span, Span)

길이가 같은 두 범위에서 일치 항목을 만듭니다.

속성

Left

왼쪽 범위 가져오기

Length

범위의 길이를 가져옵니다. 두 범위의 길이는 같습니다.

Right

올바른 범위를 가져옵니다.

메서드

Equals(Object)

두 Match 개체의 왼쪽 및 오른쪽 범위가 같은지 여부를 결정합니다.

GetEnumerator()

정수의 로 Tuple 형식화된 열거자를 가져옵니다.

GetHashCode()

해시 함수를 제공합니다.

명시적 인터페이스 구현

IEnumerable.GetEnumerator()

형식화되지 않은 열거자를 가져옵니다.

확장 메서드

EmptyIfNull<T>(IEnumerable<T>)

null이 아닌 경우 이 열거형을 반환합니다. null이면 빈 열거형을 반환합니다.

적용 대상