Пример #1
0
 private Expression <Func <Dupe, bool> > TitlePredicate(Track tr)
 {
     return(i => i.files.FirstOrDefault().title == tr.title);
 }
Пример #2
0
 private Expression <Func <Dupe, bool> > FilenamePredicate(Track tr)
 {
     return(i => i.files.FirstOrDefault().filename == tr.filename);
 }
Пример #3
0
 private Expression <Func <Dupe, bool> > HashPredicate(Track tr)
 {
     return(i => new FileInfo(tr.filename).Length == new FileInfo(i.files.FirstOrDefault().filename).Length&& GetMd5(tr.filename).SequenceEqual(GetMd5(i.files.FirstOrDefault().filename)));
 }