共用方式為


NullableOperators.( +? )<^T1,^T2,^T3> 函式 (F#)

加法運算子可為Null的值會出現在右側的位置。

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

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

// Signature:
( +? ) : ^T1 -> Nullable<^T2> -> Nullable<^T3> when ^T1 with static member (+) and ^T2 with static member (+) and ^T2 : (new : unit ->  ^T2) and ^T2 : struct and ^T2 :> ValueType and ^T3 : (new : unit ->  ^T3) and ^T3 : struct and ^T3 :> ValueType

// Usage:
value +? nullableValue 

參數

  • value
    型別:^T1

    第一個輸入值。

  • nullableValue
    型別: Nullable<T><^T2>

    第二個輸入值,可為 Null 之值。

傳回值

兩個輸入值的總和,可為Null值。

備註

如果第二個值為null,則傳回值為NULL。

平台

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

版本資訊

F# 核心程式庫版本

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

請參閱

參考

Linq.NullableOperators 模組 (F#)

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