Megosztás a következőn keresztül:


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

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

Parameters

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

Reference

Linq.Nullable Module (F#)

Microsoft.FSharp.Linq Namespace (F#)

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

Enumerations (F#)