共用方式為


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

將引數轉換成32位元帶正負號的整數(int)。 這是針對所有基本數字類資料型別的直接轉換。 作業需要在輸入型別上使用適當的靜態轉換方法

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

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

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

// Usage:
Nullable.int value

參數

傳回值

轉換的int。

備註

這個函式在 .NET 組件中名為 ToInt。 如果是透過 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.byte<^T> 函式 (F#)