NullableTypes Class Library

NullableInt32.Subtract Method 

Computes the subtraction of the two specified NullableInt32 structures.

[Visual Basic]
Public Shared Function Subtract( _
   ByVal x As NullableInt32, _
   ByVal y As NullableInt32 _
) As NullableInt32
[C#]
public static NullableInt32 Subtract(
   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 subtraction.

Exceptions

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

See Also

NullableInt32 Class | NullableTypes Namespace