Table of contents
TOC
Collapse the table of content
Expand the table of content

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

Den Delimarsky|Last Updated: 7/5/2016
|
1 Contributor

Implements reference, or physical equality.

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

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

Syntax

// 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 System.Object.Equals(System.Object) 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

Core.LanguagePrimitives Module (F#)

Microsoft.FSharp.Core Namespace (F#)

© 2016 Microsoft