Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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

Compare two values. May be called as a recursive case from an implementation of IComparable<T> to ensure consistent NaN comparison semantics.

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

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

// Signature:
GenericComparisonWithComparer : IComparer -> 'T -> 'T -> int (requires comparison)

// Usage:
GenericComparisonWithComparer comp e1 e2


Type: IComparer

The function to compare the values.


Type: 'T

The first value.


Type: 'T

The second value.

The result of the comparison.

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

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

© 2015 Microsoft