Skip to content

UInt16Extensions.DidSubtractionOverflow Method ​

Definition ​

Determines whether a signed subtraction overflowed by examining the difference and its operands.

c#
public static bool DidSubtractionOverflow(this ushort value, ushort left, ushort right);

View source

Parameters ​

NameTypeDescription
valueUInt16
leftUInt16The left operand.
rightUInt16The right operand.

Returns ​

Boolean

true if the subtraction overflowed; false otherwise.