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
参数
要与此实例进行比较的元组。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 .
|