HashIdentity.Reference<'T> Type Function (F#)
Implements physical hashing, which means that it hashes on reference identity of objects, and the contents of value types.
Namespace/Module Path: Microsoft.FSharp.Collections.HashIdentity
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature:
Reference<'T (requires reference type)> : IEqualityComparer<'T> (requires reference type)
// Usage:
Reference
Return Value
An object that implements IEqualityComparer.
Remarks
This function hashes using LanguagePrimitives.PhysicalEquality and LanguagePrimitives.PhysicalHash. That is, for value types uses GetHashCode and Equals() (if no other optimization available), and for reference types uses GetHashCode() and reference equality.
Platforms
Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2
Version Information
F# Runtime
Supported in: 2.0, 4.0
Silverlight
Supported in: 3