ArgumentLessThan(T) Method
From Project Mercury API
| Project Mercury API Reference |
| Guard..::.ArgumentLessThan<(Of <(T>)>) Method |
| Guard Class See Also Send Feedback |
[This is preliminary documentation and is subject to change.]
Performs a check against a method argument, and throws an ArgumentOutOfRangeException if it is
less than the specified threshold.
Namespace:
ProjectMercury
Assembly:
ProjectMercury (in ProjectMercury.dll) Version: 3.1.0.0
Syntax
| C# |
|---|
public static void ArgumentLessThan<T>( string parameter, T argument, T threshold ) where T : Object, IComparable<T> |
| Visual Basic (Declaration) |
|---|
Public Shared Sub ArgumentLessThan(Of T As {Object, IComparable(Of T)}) ( _ parameter As String, _ argument As T, _ threshold As T _ ) |
| Visual C++ |
|---|
public: generic<typename T> where T : Object, IComparable<T> static void ArgumentLessThan( String^ parameter, T argument, T threshold ) |
Parameters
- parameter
- Type: System..::.String
The name of the method parameter.
- argument
- Type: T
The value being passed as an argument.
- threshold
- Type: T
The threshold value that the argument must be equal to or greater than to pass the test.
Type Parameters
- T
- The type of argument being checked.