ISubtractionOperators<TSelf,TOther,TResult>.CheckedSubtraction Operator

Definition

Subtracts two values to compute their difference.

C#
public static virtual TResult op_CheckedSubtraction(TSelf left, TOther right);

Parameters

left
TSelf

The value from which right is subtracted.

right
TOther

The value which is subtracted from left.

Returns

TResult

The value of right subtracted from left.

Exceptions

The value of right subtracted from left is not representable by TResult.

Applies to

Product Versions
.NET 7, 8, 9, 10