Skip to content

ByteExtensions.DidAdditionOverflow Method

Definition

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

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

View source

Parameters

Name Type Description
sum Byte The result of the addition.
left Byte The left operand.
right Byte The right operand.

Returns

Boolean

true if the addition overflowed; false otherwise.