|
Joutsen v0.5.0+12-g5dd5f7e
|
A static class that can be used to easily check input values of a method. More...
Static Public Member Functions | |
| static TValue | CheckNotNull< TValue > (TValue value, String name=null) |
Checks if a value is null and throws an System.ArgumentNullException if it is. More... | |
| static TValue | CheckNotNull< TValue > (TValue value, Exception exception) |
Checks if a value is null and throws the exception if it is. More... | |
| static String | CheckNotNullOrEmpty (String value, String name=null) |
| Checks if a String value is null or an empty string and raises an System.ArgumentException if it is. More... | |
| static String | CheckNotNullOrEmpty (String value, Exception exception) |
| Checks if a String value is null or an empty string and raises an System.ArgumentException if it is. More... | |
| static String | CheckNotNullOrWhiteSpace (String value, String name=null) |
| Checks if a string argument is null or consists only out of invisible or white space characters. More... | |
| static String | CheckNotNullOrWhiteSpace (String value, Exception exception) |
| Checks if a string argument is null or consists only out of invisible or white space characters. More... | |
| static T | CheckRange< T > (T value, T min, T max, String name=null) |
| Checks if an argument value is between an upper and lower bound. More... | |
| static T | CheckRange< T > (T value, T min, T max, Exception exception) |
| Checks if an argument value is between an upper and lower bound. More... | |
| static T | CheckUpperBound< T > (T value, T max, String name=null) |
| Checks if an argument value is below an upper bound. More... | |
| static T | CheckUpperBound< T > (T value, T max, Exception exception) |
| Checks if an argument value is below an upper bound. More... | |
| static T | CheckLowerBound< T > (T value, T min, String name=null) |
| Checks if an argument value exceeds a lower bound. More... | |
| static T | CheckLowerBound< T > (T value, T min, Exception exception) |
| Checks if an argument value exceeds a lower bound. More... | |
| static T | CheckType< T > (object value, String name=null) |
| Checks if an argument value is of a certain type. More... | |
| static T | CheckType< T > (object value, Exception exception) |
| Checks if an argument value is of a certain type. More... | |
A static class that can be used to easily check input values of a method.
|
static |
Checks if an argument value exceeds a lower bound.
| value | the argument value to check |
| min | the lowest value that is allowed |
| exception | the exception to throw if the value is not within the bound of @paramref max |
| T | : | IComparable |
|
static |
Checks if an argument value exceeds a lower bound.
| value | the argument value to check |
| min | the lowest value that is allowed |
| name | the name of the argument that is tested |
| ArgumentOutOfRangeException | if the argument value is not within the bound of @paramref min |
| T | : | IComparable |
|
static |
Checks if a value is null and throws the exception if it is.
| TValue | the type of the value that is checked |
| value | the value that is checked |
| exception | the exception to throw if the value is null |
value if it is not null | TValue | : | class |
|
static |
Checks if a value is null and throws an System.ArgumentNullException if it is.
| TValue | the type of the value that is checked |
| value | the value that is checked |
| name | optional, the name of the parameter that refers to the checked value |
value if it is not null | System.ArgumentNullException | if value is null |
| TValue | : | class |
|
static |
Checks if a String value is null or an empty string and raises an System.ArgumentException if it is.
| value | the value that is checked |
| exception | the exception to throw if the value is null |
value if it is not null or an empty string
|
static |
Checks if a String value is null or an empty string and raises an System.ArgumentException if it is.
| value | the value that is checked |
| name | optional, the name of the parameter that refers to the checked value |
value if it is not null or an empty string | System.ArgumentNullException | if value is null |
| System.ArgumentException | if value is an empty string |
|
static |
Checks if a string argument is null or consists only out of invisible or white space characters.
| value | the string to check |
| exception | the exception to throw if the value is null |
|
static |
Checks if a string argument is null or consists only out of invisible or white space characters.
| value | the string to check |
| name | the name of the argument that is tested |
| ArgumentNullException | if the string is null |
| ArgumentException | if the string is empty or only contains of white space characters |
|
static |
Checks if an argument value is between an upper and lower bound.
| value | the argument value to check |
| min | the lowest value that is allowed |
| max | the highest value that is allowed |
| exception | the exception to throw if the value is not within the range of @paramref min and @paramref max |
| T | : | IComparable |
|
static |
Checks if an argument value is between an upper and lower bound.
| value | the argument value to check |
| min | the lowest value that is allowed |
| max | the highest value that is allowed |
| name | the name of the argument that is tested |
| ArgumentOutOfRangeException | if the argument value is not within the range of @paramref min and @paramref max |
| T | : | IComparable |
|
static |
Checks if an argument value is of a certain type.
| value | the argument value to check |
| exception | the exception to throw if the value is not the required type @typeparamref T |
|
static |
Checks if an argument value is of a certain type.
| value | the argument value to check |
| name | the name of the argument that is tested |
| ArgumentException | if the argument value is not of the required type @typeparamref T |
|
static |
Checks if an argument value is below an upper bound.
| value | the argument value to check |
| max | the highest value that is allowed |
| exception | the exception to throw if the value is not within the bound of @paramref max |
| T | : | IComparable |
|
static |
Checks if an argument value is below an upper bound.
| value | the argument value to check |
| max | the highest value that is allowed |
| name | the name of the argument that is tested |
| ArgumentOutOfRangeException | if the argument value is not within the bound of @paramref max |
| T | : | IComparable |