共用方式為


Nullable.char<^T> 函式 (F#)

將引數轉換成 char。 數字輸入會根據字元的 UTF-16 編碼方式進行轉換。 作業需要在輸入型別上使用適當的靜態轉換方法

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

組件:FSharp.Core (在 FSharp.Core.dll 中)

// Signature:
char : Nullable<^T> -> Nullable<char> when ^T with static member op_Explicit and ^T : (new : unit ->  ^T) and ^T : struct and ^T :> ValueType

// Usage:
Nullable.char value

參數

傳回值

轉換的字元。

備註

這個函式在 .NET 組件中名為 ToChar。 如果是透過 F# 以外的 .NET 語言存取成員,或透過反映存取成員,請使用這個名稱。

平台

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

版本資訊

F# 核心程式庫版本

支援版本:4.0,可攜式執行檔 (PE)。

請參閱

參考

Linq.Nullable 模組 (F#)

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

Operators.char<^T> 函式 (F#)