FSharp.Core


Unchecked Module

Namespace: FSharp.Core

Assembly: FSharp.Core.dll

Parent Module: Operators
This module contains basic operations which do not apply runtime and/or static checks

Functions and values

Function or value Description

compare arg1 arg2

Full Usage: compare arg1 arg2

Parameters:
    arg0 : 'T
    arg1 : 'T

Returns: int The result of the comparison.

Perform generic comparison on two values where the type of the values is not statically required to have the 'comparison' constraint.

arg0 : 'T
arg1 : 'T
Returns: int

The result of the comparison.

defaultof

Full Usage: defaultof

Returns: 'T

Generate a default value for any type. This is null for reference types, For structs, this is struct value where all fields have the default value. This function is unsafe in the sense that some F# values do not have proper null values.

Returns: 'T

equals arg1 arg2

Full Usage: equals arg1 arg2

Parameters:
    arg0 : 'T
    arg1 : 'T

Returns: bool The result of the comparison.

Perform generic equality on two values where the type of the values is not statically required to satisfy the 'equality' constraint.

arg0 : 'T
arg1 : 'T
Returns: bool

The result of the comparison.

hash arg1

Full Usage: hash arg1

Parameters:
    arg0 : 'T

Returns: int The computed hash value.

Perform generic hashing on a value where the type of the value is not statically required to satisfy the 'equality' constraint.

arg0 : 'T
Returns: int

The computed hash value.

unbox arg1

Full Usage: unbox arg1

Parameters:
Returns: 'T The unboxed result.

Unboxes a strongly typed value. This is the inverse of box, unbox(box a) equals a.

arg0 : obj
Returns: 'T

The unboxed result.