Tuple<T1>.IStructuralEquatable.GetHashCode(IEqualityComparer) Método
Definição
virtual int System.Collections.IStructuralEquatable.GetHashCode(System::Collections::IEqualityComparer ^ comparer) = System::Collections::IStructuralEquatable::GetHashCode;
int IStructuralEquatable.GetHashCode (System.Collections.IEqualityComparer comparer);
abstract member System.Collections.IStructuralEquatable.GetHashCode : System.Collections.IEqualityComparer -> int
override this.System.Collections.IStructuralEquatable.GetHashCode : System.Collections.IEqualityComparer -> int
Function GetHashCode (comparer As IEqualityComparer) As Integer Implements IStructuralEquatable.GetHashCode
Parâmetros
- comparer
- IEqualityComparer
Um objeto cujo método GetHashCode(Object) calcula o código hash do objeto Tuple<T1> atual.An object whose GetHashCode(Object) method calculates the hash code of the current Tuple<T1> object.
Retornos
Um código hash do inteiro com sinal de 32 bits.A 32-bit signed integer hash code.
Implementações
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 Tuple<T1> é convertida em uma interface de IStructuralEquatable.It can be used only when the Tuple<T1> instance is cast to an IStructuralEquatable interface.
O método simplesmente encapsula uma chamada para o objeto comparer na implementação IEqualityComparer.GetHashCode.The method simply wraps a call to the comparer object's IEqualityComparer.GetHashCode implementation.
O algoritmo usado para calcular o código hash deve retornar o mesmo código de hash para dois Tuple<T1> objetos que são considerados iguais.The algorithm used to compute the hash code should return the same hash code for two Tuple<T1> objects that are considered to be equal.