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

            return(file.Descendants("PC").Select(item => PCStruct.FromXElement(item)).ToList());
        }
示例#2
0
文件: Filter.cs 项目: kimichael/lab_8
 private bool DoesItemApplyToPredicates(PCStruct item)
 {
     return(_predicates.Aggregate(true, (acc, predicate) => acc && predicate(item)));
 }