Nullable.enum<^U> 函数 (F#)

将参数转换为某个特定枚举类型。

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

程序集:FSharp.Core(在 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

参数

返回值

转换后的枚举类型。

备注

此函数在 .NET 程序集中名为 ToEnum。 如果从 F# 以外的 .NET 语言中访问成员,或通过反射访问成员,请使用此名称。

平台

Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2

版本信息

F#核心库版本

支持:4.0,可移植

请参见

参考

Linq.Nullable 模块 (F#)

Microsoft.FSharp.Linq 命名空间 (F#)

Operators.enum<^U> 函数 (F#)

枚举 (F#)