ValueTuple.IStructuralComparable.CompareTo(Object, IComparer) Metoda

Definice

Porovná aktuální ValueTuple instanci se zadaným objektem.

 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

Parametry

other
Object

Objekt k porovnání s aktuální instancí.

comparer
IComparer

Objekt, který poskytuje vlastní pravidla pro porovnání. Tento parametr je ignorován.

Návraty

Int32

Vrátí hodnotu 0, pokud other je ValueTuple instance a 1, pokud other je null.

Implementuje

Výjimky

other není ValueTuple instance.

Platí pro