예제 #1
0
        public QuantifyPredicate(IPredicate <T> predicate, QuantifyCriteria criteria)
        {
            if (predicate == null)
            {
                throw new ArgumentNullException("predicate");
            }

            _predicate = predicate.Match;
            _criteria  = criteria;
        }
예제 #2
0
        public QuantifyPredicate(Func <T, bool> predicate, QuantifyCriteria criteria)
        {
            if (predicate == null)
            {
                throw new ArgumentNullException("predicate");
            }

            _predicate = predicate;
            _criteria  = criteria;
        }