Method ThrowIfNegative
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
ThrowIfNegative(int, string)
Throws a ArgumentOutOfRange exception if the integer is negative.
[Version(1, 4, 1)]
public static void ThrowIfNegative(this int n, string name)
Parameters
Exceptions
ThrowIfNegative(float, string)
Throws a ArgumentOutOfRange exception if the float is negative.
[Version(1, 4, 1)]
public static void ThrowIfNegative(float x, string name)