ArgumentDecimalLessThanGuard Class

Summary

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

Syntax

public static class ArgumentDecimalLessThanGuard

Methods

Name Value Summary
ThrowIfIsLessOrEqualThan(decimal, decimal, string) decimal
Throws an System.ArgumentOutOfRangeException exception if the argument is less or equal than compareValue.
static
ThrowIfIsLessOrEqualThanZero(decimal, string) decimal
Throws an System.ArgumentOutOfRangeException exception if the argument is less or equal than 0.
static
ThrowIfIsLessThan(decimal, decimal, string) decimal
Throws an System.ArgumentOutOfRangeException exception if the argument is less than compareValue.
static
ThrowIfIsLessThanZero(decimal, string) decimal
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