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
valueTThe value of the parameter.
comparandTThe comparand.
paramNamestringThe name of the parameter.
Returns
- T
The value of the parameter.
Type Parameters
TType type of the value.