Skip to content

UInt16Extensions.DidSubtractionOverflow Method

Definition

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

public static bool DidSubtractionOverflow(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 subtraction overflowed; false otherwise.