public IEnumerable <PCStruct> Load(string filename) { var file = XElement.Load(filename); return(file.Descendants("PC").Select(item => PCStruct.FromXElement(item)).ToList()); }
private bool DoesItemApplyToPredicates(PCStruct item) { return(_predicates.Aggregate(true, (acc, predicate) => acc && predicate(item))); }