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