Share via


LanguagePrimitives.PhysicalEquality<'T> Function (F#)

Implements reference, or physical equality.

Namespace/Module Path: Microsoft.FSharp.Core.LanguagePrimitives

Assembly: FSharp.Core (in FSharp.Core.dll)

// Signature:
PhysicalEquality : 'T -> 'T -> bool (requires reference type)

// Usage:
PhysicalEquality e1 e2

Parameters

  • e1
    Type: 'T

    The first value.

  • e2
    Type: 'T

    The second value.

Return Value

true if boxed versions of the inputs are reference-equal, or if both are primitive numeric types and the implementation of Equals for the type of the first argument returns true on the boxed version of the inputs.

Platforms

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library VersionsF# Core Library Versions

Supported in: 2.0, 4.0, PortablePortable2.0, 4.0, Portable

See Also

Reference

Core.LanguagePrimitives Module (F#)

Microsoft.FSharp.Core Namespace (F#)