ValueTuple.IStructuralComparable.CompareTo(Object, IComparer) 方法

定義

將目前的 ValueTuple 執行個體與指定的物件相比較。

 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

提供自訂規則進行比較的物件。 這個參數已忽略。

傳回

如果 otherValueTuple 執行個體,則會傳回 0;如果 othernull,則會傳回 1。

實作

例外狀況

other 不是 ValueTuple 執行個體。

適用於