ArgumentGreaterThan(T) Method

Project Mercury API

[This is preliminary documentation and is subject to change.]

Performs a check against a method argument, and throws an ArgumentOutOfRangeException if it is greater than the specified threshold.

Namespace:  ProjectMercury
Assembly:  ProjectMercury (in ProjectMercury.dll) Version: 3.1.0.0

Syntax

C#
public static void ArgumentGreaterThan<T>(
	string parameter,
	T argument,
	T threshold
)
where T : IComparable<T>
Visual Basic (Declaration)
Public Shared Sub ArgumentGreaterThan(Of T As IComparable(Of T)) ( _
	parameter As String, _
	argument As T, _
	threshold As T _
)
Visual C++
public:
generic<typename T>
where T : IComparable<T>
static void ArgumentGreaterThan(
	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 less than to pass the test.

Type Parameters

T
The type of argument being checked.

See Also