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

Nullable.enum<^U> Function (F#)

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

Converts the argument to a particular enum type.

Namespace/Module Path: Microsoft.FSharp.Linq.Nullable

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

Syntax

// Signature:
enum : Nullable<int32> -> Nullable<^U> when ^U : enum<int32> and ^U : (new : unit ->  ^U) and ^U : struct and ^U :> ValueType

// Usage:
Nullable.enum value

Parameters

value Type: System.Nullable`1<int32>

The input value.

Return Value

The converted enum type.

Remarks

This function is named ToEnum in the .NET assembly. If accessing the member from a .NET language other than F#, or through reflection, use this name.

Platforms

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

Version Information

F# Core Library Versions

Supported in: 4.0, Portable

See Also

Linq.Nullable Module (F#)

Microsoft.FSharp.Linq Namespace (F#)

Operators.enum<^U> Function (F#)

Enumerations (F#)

© 2017 Microsoft