NullableTypes Class Library

NullableInt32.Add Method 

Computes the sum of the two specified NullableInt32 structures.

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

Parameters

x
A NullableInt32 structure.
y
A NullableInt32 structure.

Return Value

Null if either instance of NullableInt32 is Null otherwise a NullableInt32 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

NullableInt32 Class | NullableTypes Namespace