언어

ValueTuple<T1,T2,T3,T4,T5,T6,T7>.IStructuralComparable.CompareTo 메서드

정의

지정된 비교자를 사용하여 현재 ValueTuple<T1,T2,T3,T4,T5,T6,T7> 인스턴스를 지정된 개체와 비교하고 현재 개체가 정렬 순서에서 지정된 개체와 이전, 이후 또는 같은 위치에 있는지 여부를 나타내는 정수를 반환합니다.

 virtual int System.Collections.IStructuralComparable.CompareTo(System::Object ^ other, System::Collections::IComparer ^ comparer) = System::Collections::IStructuralComparable::CompareTo;
int IStructuralComparable.CompareTo(object other, System.Collections.IComparer comparer);
abstract member System.Collections.IStructuralComparable.CompareTo : obj * System.Collections.IComparer -> int
override this.System.Collections.IStructuralComparable.CompareTo : obj * System.Collections.IComparer -> int
Function CompareTo (other As Object, comparer As IComparer) As Integer Implements IStructuralComparable.CompareTo

매개 변수

other
Object

현재 인스턴스와 비교할 개체입니다.

comparer
IComparer

비교를 위한 사용자 지정 규칙을 제공하는 개체입니다.

반품

다음 표와 같이 이 인스턴스의 상대 위치와 other 정렬 순서를 나타내는 부인 정수입니다.

설명
음수 정수 이 인스턴스는 앞에 섰습니다 other.
0 이 인스턴스는 other 정렬 순서에서 동일한 위치를 갖습니다.
양의 정수 이 인스턴스는 다음과 같습니다.other

구현

적용 대상