示例#1
0
 public static ConditionValidator <T> Validate <T>(this ConditionValidator <T> validator, Func <T, bool> condition, string conditionDescription = "")
 {
     return(validator.Evaluate(condition(validator.Value), conditionDescription));
 }