NullableTypes Class Library

NullableInt16 Subtraction Operator 

Computes the subtraction of the two specified NullableInt16 structures.

[Visual Basic]
returnValue = NullableInt16.op_Subtraction(x, y)
[C#]
public static NullableInt16 operator -(
   NullableInt16 x,
   NullableInt16 y
);

Parameters

x
A NullableInt16 structure.
y
A NullableInt16 structure.

Return Value

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

NullableInt16 Class | NullableTypes Namespace