Partilhar via


Função Nullable.enum<^U> (F#)

Converte o argumento para um determinado tipo enum.

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

Assembly: FSharp.Core (em 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

Parâmetros

Retornar valor

O tipo enum convertido.

Comentários

Essa função é chamada ToEnum no assembly .NET. Se acessar o membro de uma linguagem .NET a não ser F#, ou com a reflexão, usa esse nome.

Plataformas

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

Informações de Versão

Versões da biblioteca principal de F#

Suportado em: 4.0, portáteis

Consulte também

Referência

Módulo Linq.Nullable (F#)

Namespace Microsoft.FSharp.Linq (F#)

Função Operators.enum<^U> (F#)

enumerações (F#)