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