NullableTypes Class Library

NullableInt32 Unary Negation Operator 

Negates the Value of the specified NullableInt32 structure.

[Visual Basic]
returnValue = NullableInt32.op_UnaryNegation(x)
[C#]
public static NullableInt32 operator -(
   NullableInt32 x
);

Parameters

x
A NullableInt32 structure.

Return Value

Null if x is Null otherwise a NullableInt32 structure containing the negated value.

Exceptions

Exception TypeCondition
OverflowException The negation compute a number that is greater than MaxValue.

See Also

NullableInt32 Class | NullableTypes Namespace