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 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2.

Informazioni sulla versione

F# Runtime

Supportato in: 2.0, 4.0

Silverlight

Supportato in: 3

Vedere anche

Riferimenti

Modulo Core.LanguagePrimitives (F#)

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