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)); }
/// <summary> /// Initializes a new instance of the <see cref="ConditionList"/> class. /// </summary> internal ConditionList(IEnumerable <TypeDefinition> classes, bool should, FunctionSequence sequence) { _types = classes.ToList(); _sequence = sequence; }
/// <summary> /// Initializes a new instance of the <see cref="Predicates"/> class. /// </summary> internal Predicates(IEnumerable <TypeDefinition> types, FunctionSequence calls) { _types = types.ToList(); _sequence = calls; }
/// <summary> /// Initializes a new instance of the <see cref="Predicates"/> class. /// </summary> internal Predicates(IEnumerable <TypeDefinition> types) { _types = types.ToList(); _sequence = new FunctionSequence(); }
/// <summary> /// Initializes a new instance of the <see cref="Conditions"/> class. /// </summary> internal Conditions(IEnumerable <TypeDefinition> types, bool should, FunctionSequence calls) { _types = types.ToList(); _should = should; _sequence = calls; }
/// <summary> /// Initializes a new instance of the <see cref="Conditions"/> class. /// </summary> internal Conditions(IEnumerable <TypeDefinition> types, bool should) { _types = types.ToList(); _should = should; _sequence = new FunctionSequence(); }
/// <summary> /// Initializes a new instance of the <see cref="PredicateList"/> class. /// </summary> internal PredicateList(IEnumerable <TypeDefinition> classes, FunctionSequence sequence) { _types = classes; _sequence = sequence; }