ValueTuple.CompareTo(ValueTuple) 方法

定義

比較目前的 ValueTuple 執行個體與指定的 ValueTuple 執行個體。Compares the current ValueTuple instance to a specified ValueTuple instance.

public:
 virtual int CompareTo(ValueTuple other);
public int CompareTo (ValueTuple other);
abstract member CompareTo : ValueTuple -> int
override this.CompareTo : ValueTuple -> int
Public Function CompareTo (other As ValueTuple) As Integer

參數

other
ValueTuple

要與目前執行個體比較的物件。The object to compare with the current instance.

傳回

這個方法一律會傳回 0。This method always returns 0.

實作

例外狀況

other 不是 ValueTuple 執行個體。other is not a ValueTuple instance.

備註

Because a ValueTuple instance has no elements, any two ValueTuple instances are considered to be equivalent.

適用於