ObjectReferenceEqualityComparer.IEqualityComparer<Object>.GetHashCode 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
取得指定物件的雜湊碼。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Private Function GetHashCode ( _
obj As Object _
) As Integer Implements IEqualityComparer(Of Object).GetHashCode
'用途
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.
參數
- obj
類型:System.Object
物件。
傳回值
類型:System.Int32
指定物件的雜湊碼。
Implements
IEqualityComparer<T>.GetHashCode(T)