Method IsGreaterThan
IsGreaterThan<T>(T, T, string)
Ensures that the value of a parameter is greater than a comparand.
public static T IsGreaterThan<T>(T value, T comparand, string paramName) where T : IComparable<T>
Parameters
value
TThe value of the parameter.
comparand
TThe comparand.
paramName
stringThe name of the parameter.
Returns
- T
The value of the parameter.
Type Parameters
T
Type type of the value.