ValueTuple.CompareTo(ValueTuple) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將當前 ValueTuple 實例與指定的 ValueTuple 實例進行比較。
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
要與當前實例比較的物件。
傳回
此方法總是回傳 0。
實作
例外狀況
other 不是實 ValueTuple 例。
備註
由於一個 ValueTuple 實例沒有元素,任何兩個 ValueTuple 實例都被視為等價。