Compartilhar via


Função NullableOperators.( ?+? )<^T1,^T2,^T3> (F#)

O operador de adição onde um valor anulável aparece na esquerda e lados da direita.

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

Assembly: FSharp.Core (em FSharp.Core.dll)

// Signature:
( ?+? ) : Nullable<^T1> -> Nullable<^T2> -> Nullable<^T3> when ^T1 with static member (+) and ^T1 : (new : unit ->  ^T1) and ^T1 : struct and ^T1 :> ValueType 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:
nullableValue1 ?+? nullableValue2

Parâmetros

  • nullableValue1
    Tipo: Nullable<^T1>

    O primeiro valor de entrada, como um valor anulável.

  • nullableValue2
    Tipo: Nullable<^T2>

    O segundo valor de entrada, como um valor anulável.

Retornar valor

A soma de dois valores de entrada, como um valor anulável.

Comentários

Se qualquer um dos valores é zero, o valor de retorno é zero.

Plataformas

O windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Informações de Versão

Versões da biblioteca principal de F#

Suportado em: 4.0, portáteis

Consulte também

Referência

Módulo Linq.NullableOperators (F#)

Namespace Microsoft.FSharp.Linq (F#)