Skip to content

ByteExtensions.DidAdditionOverflow Method ​

Definition ​

Determines whether a signed addition overflowed by examining the sum and its operands.

c#
public static bool DidAdditionOverflow(this Byte sum, Byte left, Byte right);

View source

Parameters ​

NameTypeDescription
sumByteThe result of the addition.
leftByteThe left operand.
rightByteThe right operand.

Returns ​

Boolean

true if the addition overflowed; false otherwise.