ValueTuple.IStructuralComparable.CompareTo(Object, IComparer) ValueTuple.IStructuralComparable.CompareTo(Object, IComparer) ValueTuple.IStructuralComparable.CompareTo(Object, IComparer) Method

Definición

Compara la instancia de ValueTuple actual con un objeto especificado.Compares the current ValueTuple instance to a specified object.

 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);
Function CompareTo (other As Object, comparer As IComparer) As Integer Implements IStructuralComparable.CompareTo

Parámetros

other
Object Object Object

Objeto que se va a comparar con la instancia actual.The object to compare with the current instance.

comparer
IComparer IComparer IComparer

Un objeto que proporciona reglas personalizadas para la comparación.An object that provides custom rules for comparison. Este parámetro se ignora.This parameter is ignored.

Devoluciones

Devuelve 0 si other es una instancia de ValueTuple y 1 si other es null.Returns 0 if other is a ValueTuple instance and 1 if other is null.

Implementaciones

Excepciones

other no es una instancia de ValueTuple.other is not a ValueTuple instance.

Se aplica a