private Expression <Func <Dupe, bool> > TitlePredicate(Track tr) { return(i => i.files.FirstOrDefault().title == tr.title); }
private Expression <Func <Dupe, bool> > FilenamePredicate(Track tr) { return(i => i.files.FirstOrDefault().filename == tr.filename); }
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))); }