Skip to content

UInt16Extensions.DidAdditionOverflow Method ​

Definition ​

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

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

View source

Parameters ​

NameTypeDescription
valueUInt16
leftUInt16The left operand.
rightUInt16The right operand.

Returns ​

Boolean

true if the addition overflowed; false otherwise.