Method ArgumentIsBetween
ArgumentIsBetween<T>(Expression<Func<T>>, T, T, bool)
Checks if given argument is between given lower value and upper value.
Declaration
public static void ArgumentIsBetween<T>(Expression<Func<T>> argument, T lowerBound, T upperBound, bool inclusive = false) where T : struct, IComparable<T>
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T>> | argument | Given argument |
T | lowerBound | |
T | upperBound | |
bool | inclusive | Inclusive lower bound value if true. |
Type Parameters
Name | Description |
---|---|
T |