Skip to content

ByteExtensions.DidSubtractionOverflow Method ​

Definition ​

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

c#
public static bool DidSubtractionOverflow(this Byte difference, Byte left, Byte right);

View source

Parameters ​

NameTypeDescription
differenceByteThe result of the subtraction.
leftByteThe left operand.
rightByteThe right operand.

Returns ​

Boolean

true if the subtraction overflowed; false otherwise.