Condividi tramite


Metodo ObjectReferenceEqualityComparer.IEqualityComparer<Object>.GetHashCode

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Ottiene il codice hash per l'oggetto specificato.

Spazio dei nomi:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Private Function GetHashCode ( _
    obj As Object _
) As Integer Implements IEqualityComparer(Of Object).GetHashCode
'Utilizzo
Dim instance As ObjectReferenceEqualityComparer 
Dim obj As Object 
Dim returnValue As Integer 

returnValue = CType(instance, IEqualityComparer(Of Object)).GetHashCode(obj)
int IEqualityComparer<Object>.GetHashCode(
    Object obj
)
private:
virtual int GetHashCode(
    Object^ obj
) sealed = IEqualityComparer<Object^>::GetHashCode
private abstract GetHashCode : 
        obj:Object -> int  
private override GetHashCode : 
        obj:Object -> int
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parametri

Valore restituito

Tipo: System.Int32
Codice hash per l'oggetto specificato.

Implements

IEqualityComparer<T>.GetHashCode(T)

Vedere anche

Riferimento

ObjectReferenceEqualityComparer Classe

Spazio dei nomi System.Data.Entity.Infrastructure