ValueTuple.IStructuralComparable.CompareTo(Object, IComparer) Metod

Definition

Jämför den aktuella ValueTuple instansen med ett angivet objekt.

 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

Parametrar

other
Object

Det objekt som ska jämföras med den aktuella instansen.

comparer
IComparer

Ett objekt som tillhandahåller anpassade regler för jämförelse. Den här parametern ignoreras.

Returer

Returnerar 0 om other är en ValueTuple instans och 1 om other är null.

Implementeringar

Undantag

other är inte en ValueTuple instans.

Gäller för