ArgumentIntLessThanGuard Class

Summary

int argument validator.
Namespace
oehen.arguard.LessThan
Base Types
  • object
graph BT Type-->Base0["object"] Type["ArgumentIntLessThanGuard"] class Type type-node

Syntax

public static class ArgumentIntLessThanGuard

Methods

Name Value Summary
ThrowIfIsLessOrEqualThan(int, int, string) int
Throws an System.ArgumentOutOfRangeException exception if the argument is less or equal than compareValue.
static
ThrowIfIsLessOrEqualThanZero(int, string) int
Throws an System.ArgumentOutOfRangeException exception if the argument is less or equal than 0.
static
ThrowIfIsLessThan(int, int, string) int
Throws an System.ArgumentOutOfRangeException exception if the argument is less than compareValue.
static
ThrowIfIsLessThanZero(int, string) int
Throws an System.ArgumentOutOfRangeException exception if the argument is less than 0.
static

Extension Methods

Name Value Summary
ThrowIfNotTypeOf<T>(string) T
Throws an System.InvalidOperationException if argument is not type of T.
GitHub