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