示例#1
0
        public Validator <T> Ensure(Predicate <T> condition, string errorMessage)
        {
            Action accumulate = () =>
                                AccumulatedErrors.Add(errorMessage);

            On <T> .Values(Items)
            .WhenEachNot(condition)
            .Then(accumulate);

            return(this);
        }
示例#2
0
 public static OnSingle <object> Value(object value)
 {
     return(On <object> .Value(value));
 }