internal PredicateList(IEnumerable <TypeDefinition> classes, Func <IEnumerable <TypeDefinition>, IEnumerable <TypeDefinition> > filter) { _types = classes; _sequence = new FunctionSequence(); if (filter != null) { _sequence.Add(filter); } }
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)); }