public MaximumMatchingProblem( IEnumerable <Expression <Func <TValue, bool> > > predicates, IEnumerable <TValue> elements) { Predicates.AddRange(predicates.Select((predicate, index) => new Predicate <TValue>(predicate, index))); Elements.AddRange(elements.Select((element, index) => new Element <TValue>(element, index))); }
public MainMenu AddPredicates(params Func <object, bool>[] predicates) { Predicates.AddRange(predicates); return(this); }