ValueTuple<T1,T2,T3,T4,T5,T6>.CompareTo(ValueTuple<T1,T2,T3,T4,T5,T6>) 方法

定義

比較目前的 ValueTuple<T1,T2,T3,T4,T5,T6> 執行個體與指定的 ValueTuple<T1,T2,T3,T4,T5,T6> 執行個體。Compares the current ValueTuple<T1,T2,T3,T4,T5,T6> instance to a specified ValueTuple<T1,T2,T3,T4,T5,T6> instance.

public:
 virtual int CompareTo(ValueTuple<T1, T2, T3, T4, T5, T6> other);
public int CompareTo (ValueTuple<T1,T2,T3,T4,T5,T6> other);
abstract member CompareTo : ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5, 'T6> -> int
override this.CompareTo : ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5, 'T6> -> int
Public Function CompareTo (other As ValueTuple(Of T1, T2, T3, T4, T5, T6)) As Integer

參數

other
ValueTuple<T1,T2,T3,T4,T5,T6>

要與此執行個體相比較的元組。The tuple to compare with this instance.

傳回

帶正負號的整數,可指出此執行個體以及排序次序中 other 的相對位置,如下表所示。A signed integer that indicates the relative position of this instance and other in the sort order, as shown in the following table.

Value 說明Description
負整數A negative integer 這個執行個體位於 other 之前。This instance precedes other.
Zero 這個執行個體和 other 的排序位置相同。This instance and other have the same position in the sort order.
正整數A positive integer 這個執行個體位於 other 之後。This instance follows other.

實作

適用於