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

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

Den Delimarsky|Last Updated: 8/18/2017
1 Contributor

Converts the argument to a particular enum type.

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

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


// 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


value Type: System.Nullable`1<int32>

The input value.

Return Value

The converted enum type.


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.


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#)

© 2020 Microsoft