Table of Contents

Method ThrowIfOutOfRange

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

ThrowIfOutOfRange(int, int, int, string)

Throws a ArgumentOutOfRange exception if the integer is out of range.

public static void ThrowIfOutOfRange(this int argument, int minInclusive, int maxExclusive, string argName)

Parameters

argument int

The integer to check.

minInclusive int

The minimum value of the range, included.

maxExclusive int

The maximum value of the range, not included.

argName string

The name of the argument.