2
檢索所有值,我目前有:從IGrouping
UIEnumerable <IGrouping<PortableKey, FileInfo>>
從這個代碼:
var queryDupFiles = from file in fileList
group file by new PortableKey { Name = file.Name, Length = file.Length }
into g
where g.Count() > 1
select g;
其中用於PortableKey代碼:
public class PortableKey
{
public string Name { get; set; }
public long Length { get; set; }
}
基本上過濾,抓住所有文件這是重複的。我如何獲得它,以便以這種方式獲得所有FileInfo?
List<FileInfo> list
謝謝你,這完美地工作! – Emlinie 2012-08-01 19:37:54