Beispiel #1
0
 internal SimpleValidator(SimpleValidator <TSource> prev, Func <TSource, bool> validator)
 {
     this.Prev      = prev;
     this.Validator = validator;
 }
Beispiel #2
0
 /// <summary>
 /// Add validator
 /// </summary>
 /// <param name="prev"></param>
 /// <param name="validator"></param>
 /// <typeparam name="TSource"></typeparam>
 /// <returns></returns>
 public static SimpleValidator <TSource> Add <TSource>(this SimpleValidator <TSource> prev,
                                                       Func <TSource, bool> validator)
 {
     return(new SimpleValidator <TSource>(prev, validator));
 }