ArgumentLongLessThanGuard Class

Summary

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

Syntax

public static class ArgumentLongLessThanGuard

Methods

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

Extension Methods

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