linq中数据转换为不同的类型
IEnumerable<string> fileList
=Directory.GetFiles("c:\\","*.*");
IEnumerable<FileInfo> files
=fileList.select(f=>new FileInfo(f));
最后更新:2017-04-02 06:52:24
IEnumerable<string> fileList
=Directory.GetFiles("c:\\","*.*");
IEnumerable<FileInfo> files
=fileList.select(f=>new FileInfo(f));
最后更新:2017-04-02 06:52:24