예제 #1
0
 internal PredicateList(IEnumerable <TypeDefinition> classes,
                        Func <IEnumerable <TypeDefinition>, IEnumerable <TypeDefinition> > filter)
 {
     _types    = classes;
     _sequence = new FunctionSequence();
     if (filter != null)
     {
         _sequence.Add(filter);
     }
 }
예제 #2
0
        public ConditionList Should(Filter filter = null)
        {
            var inputs           = _sequence.Execute(_types);
            var functionSequence = new FunctionSequence();

            if (filter != null)
            {
                functionSequence.Add(filter);
            }
            return(new ConditionList(inputs, true, functionSequence));
        }