teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

修正

2019/01/09 06:54

投稿

YAmaGNZ
YAmaGNZ

スコア10674

answer CHANGED
@@ -8,4 +8,5 @@
8
8
  DirectoryInfo directory = new DirectoryInfo(path);
9
9
  IEnumerable < FileInfo > files = directory.EnumerateFiles("*", SearchOption.AllDirectories)
10
10
  .Where(x => exts.Any(ext => x.Extension == ext));
11
- ```
11
+ ```
12
+ 別にAny使わなくてもContainsでいけますね