Method ThrowIfNotPositive
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
ThrowIfNotPositive(int, string)
Throws an ArgumentOutOfRangeException if the integer is not positive (i.e. zero or negative).
[AssertionMethod]
public static void ThrowIfNotPositive(this int argument, string argName = null)
Parameters
Exceptions
- ArgumentOutOfRangeException
argumentis zero or negative.