Skip to content

UInt16Extensions.DidAdditionOverflow Method

Definition

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

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

View source

Parameters

Name Type Description
value UInt16
left UInt16 The left operand.
right UInt16 The right operand.

Returns

Boolean

true if the addition overflowed; false otherwise.