Beispiel #1
0
        public IEnumerable <PCStruct> Load(string filename)
        {
            var file = XElement.Load(filename);

            return(file.Descendants("PC").Select(item => PCStruct.FromXElement(item)).ToList());
        }
Beispiel #2
0
 private bool DoesItemApplyToPredicates(PCStruct item)
 {
     return(_predicates.Aggregate(true, (acc, predicate) => acc && predicate(item)));
 }