public static RuleMethod AddMaxValueRule <T>(RuleList pRuleList, string pPropertyName, T pMaxValue) { return(pRuleList.Add(MaxValue <T>, MinMaxArgs <T> .CreateMaxOnlyArgs(pPropertyName, pMaxValue))); }
public static RuleMethod AddIntegerMaxValueRule(RuleList pRuleList, string pPropertyName, long pMaxValue) { return(pRuleList.Add(IntegerMaxValue, MinMaxArgs <long> .CreateMaxOnlyArgs(pPropertyName, pMaxValue))); }