/// <summary>
        /// Validates a parameter is greater than <paramref name="value" />. Otherwise, an <see cref="ArgumentOutOfRangeException" /> is thrown.
        /// </summary>
        /// <typeparam name="TParameter">The parameter type.</typeparam>
        /// <param name="validator">The <see cref="ParameterValidator{TParameter}" />.</param>
        /// <param name="value">The value the parameter must be greater than.</param>
        /// <returns>The same instance of <see cref="ParameterValidator{TParameter}" />.</returns>
        /// <exception cref="ArgumentOutOfRangeException">Thrown when the parameter is not greater than <paramref name="value" />.</exception>
        public static ParameterValidator <TParameter?> IsGreaterThan <TParameter>(this ParameterValidator <TParameter?> validator, TParameter?value)
            where TParameter : struct, IComparable <TParameter>
        {
            if (validator.Value == null || value == null)
            {
                return(validator);
            }

            string exceptionMessage = string.Format(ExceptionMessages.VALUE_MUST_BE_GREATER_THAN, value.ToString());

            return(validator.IsGreaterThan(value, exceptionMessage));
        }