ValueTuple<T1,T2,T3,T4,T5,T6>.IStructuralComparable.CompareTo(Object, IComparer) Método
Definición
Compara la instancia de ValueTuple<T1,T2,T3,T4,T5,T6> actual con un objeto especificado mediante un comparador especificado y devuelve un entero que indica si el objeto actual es anterior, posterior o está en la misma posición que el objeto especificado en el criterio de ordenación.Compares the current ValueTuple<T1,T2,T3,T4,T5,T6> instance to a specified object by using a specified comparer and returns an integer that indicates whether the current object is before, after, or in the same position as the specified object in the sort order.
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
Parámetros
- other
- Object
Objeto que se va a comparar con la instancia actual.The object to compare with the current instance.
- comparer
- IComparer
Un objeto que proporciona reglas personalizadas para la comparación.An object that provides custom rules for comparison.
Devoluciones
Entero con signo que indica la posición relativa de esta instancia y other
en el criterio de ordenación, tal como se muestra en la tabla siguiente.A signed integer that indicates the relative position of this instance and other
in the sort order, as shown in the following table.
ValorValue | DescripciónDescription |
---|---|
Un entero negativoA negative integer | Esta instancia precede a other .This instance precedes other .
|
CeroZero | En el criterio de ordenación, esta instancia y other tienen la misma posición.This instance and other have the same position in the sort order.
|
Un entero positivo.A positive integer | Esta instancia es posterior a other .This instance follows other .
|