Funzione LanguagePrimitives.EnumOfValue<'T,'Enum> (F#)

Compila un valore di enumerazione da un valore sottostante.

Percorso spazio dei nomi/modulo: Microsoft.FSharp.Core.LanguagePrimitives

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

// Signature:
EnumOfValue : 'T -> 'Enum (requires enum)

// Usage:
EnumOfValue value

Parametri

  • value
    Tipo: 'T

    Valore di input.

Valore restituito

Valore come enumerazione.

Piattaforme

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

Informazioni sulla versione

Versioni della libreria di base F#

Supportato in: 2,0, 4,0, portabile

Vedere anche

Riferimenti

Modulo Core.LanguagePrimitives (F#)

Spazio dei nomi Microsoft.FSharp.Core (F#)