IUnaryNegationOperators<TSelf,TResult>.CheckedUnaryNegation Operator

Definition

Computes the checked unary negation of a value.

C#
public static virtual TResult op_CheckedUnaryNegation (TSelf value);

Parameters

value
TSelf

The value for which to compute the unary negation.

Returns

TResult

The unary negation of value.

Exceptions

The unary negation of value is not representable by TResult.

Applies to

Product Versions
.NET 7, 8, 9