Example #1
0
 public static Pred <T> AnyTrue <T>(this IEnumerable <Pred <T> > predicates, bool shortCircuit = true)
 {
     if (predicates == null)
     {
         throw new ArgumentNullException(nameof(predicates));
     }
     return(Pred <T> .Any(predicates.Select(p => p.Func), shortCircuit));
 }
Example #2
0
 public static Func <T, bool> AnyTrue <T>(this IEnumerable <Func <T, bool> > predicates, bool shortCircuit = true)
 {
     if (predicates == null)
     {
         throw new ArgumentNullException(nameof(predicates));
     }
     return(Pred <T> .Any(predicates, shortCircuit));
 }