GuardArgumentIsBetweenT Method (T, T, T, String) | 
 Throws an exception if argumentValue is less than lowerValue or greater than higherValue.
 
    Namespace: 
   Enkoni.Framework
    Assembly:
   Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntaxpublic static void ArgumentIsBetween<T>(
	T lowerValue,
	T higherValue,
	T argumentValue,
	string argumentName
)
where T : struct, new(), IComparable
Public Shared Sub ArgumentIsBetween(Of T As {Structure, New, IComparable}) ( 
	lowerValue As T,
	higherValue As T,
	argumentValue As T,
	argumentName As String
)public:
generic<typename T>
where T : value class, gcnew(), IComparable
static void ArgumentIsBetween(
	T lowerValue, 
	T higherValue, 
	T argumentValue, 
	String^ argumentName
)
static member ArgumentIsBetween : 
        lowerValue : 'T * 
        higherValue : 'T * 
        argumentValue : 'T * 
        argumentName : string -> unit  when 'T : struct, new() and IComparable
Parameters
- lowerValue
 - Type: T
The lower value accepted as valid. - higherValue
 - Type: T
The higher value accepted as valid. - argumentValue
 - Type: T
The argument value to test. - argumentName
 - Type: SystemString
Name of the argument. 
Type Parameters
- T
 - A type that implements IComparable.
 
Exceptions
Remarks
See Also