Method ThrowIfNegative
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
ThrowIfNegative(int, string)
Throws an ArgumentOutOfRangeException if the integer is negative.
public static void ThrowIfNegative(this int argument, string argName)
Parameters
Exceptions
- ArgumentOutOfRangeException
argumentis negative.
ThrowIfNegative(float, string)
Throws an ArgumentOutOfRangeException if the float is negative.
public static void ThrowIfNegative(this float argument, string argName)
Parameters
Exceptions
- ArgumentOutOfRangeException
argumentis negative.