HashIdentity.Reference<'T> 型別函式 (F#)
雜湊表示它會雜湊的物件的參考識別和內容的實值型別實作的實體。
命名空間/模組路徑: Microsoft.FSharp.Collections.HashIdentity
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
Reference<'T (requires reference type)> : IEqualityComparer<'T> (requires reference type)
// Usage:
Reference
傳回值
物件實作 IEqualityComparer
備註
LanguagePrimitives.PhysicalEquality LanguagePrimitives.PhysicalHash ,並使用這個函式雜湊。 也就是值的型別使用 GetHashCode和 Equals()(如果沒有其他最佳化可用),並為參考型別使用 GetHashCode()和參考是否相等。
平台
Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2
版本資訊
F# 執行階段
支援版本:2.0、4.0
Silverlight
支援版本:3