NullableTypes Class Library

NullableDecimal.Add Method 

Computes the sum of the two specified NullableDecimal structures.

[Visual Basic]
Public Shared Function Add( _
   ByVal x As NullableDecimal, _
   ByVal y As NullableDecimal _
) As NullableDecimal
[C#]
public static NullableDecimal Add(
   NullableDecimal x,
   NullableDecimal y
);

Parameters

x
A NullableDecimal structure.
y
A NullableDecimal structure.

Return Value

Null if either instance of NullableDecimal is Null otherwise a NullableDecimal structure whose Value property contains the results of the addition.

Exceptions

Exception TypeCondition
OverflowException The addition compute a number that is less than MinValue or greater than MaxValue.

See Also

NullableDecimal Class | NullableTypes Namespace