CompactionStrategy.EnsureNonNegative(Int32) Method

Definition

Ensures the provided value is not a negative number.

protected static int EnsureNonNegative(int value);
static member EnsureNonNegative : int -> int
Protected Shared Function EnsureNonNegative (value As Integer) As Integer

Parameters

value
Int32

The target value.

Returns

0 if negative; otherwise the value

Applies to