ImmutableArray<T>.IStructuralComparable.CompareTo(Object, IComparer) Método
Definição
Determina se o elemento da coleção atual precede, ocorre na mesma posição ou segue a outro elemento na ordem de classificação.Determines whether the current collection element precedes, occurs in the same position as, or follows another element 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
O elemento a ser comparado com a instância atual.The element to compare with the current instance.
- comparer
- IComparer
O objeto usado para comparar os membros da matriz atual com os membros correspondentes de outra matriz.The object used to compare members of the current array with the corresponding members of other array.
Retornos
Um inteiro que indica se o elemento atual precede, está na mesma posição ou segue o outro elemento.An integer that indicates whether the current element precedes, is in the same position or follows the other element.
Implementações
Exceções
As matrizes não são do mesmo comprimento.The arrays are not the same length.
Comentários
Este membro é uma implementação do membro de interface explícita.This member is an explicit interface member implementation. Ele só pode ser usado quando a instância de ImmutableArray<T> é convertida em uma interface de IStructuralComparable.It can be used only when the ImmutableArray<T> instance is cast to an IStructuralComparable interface.