Cú pháp để thiết lập nhiều phần mở rộng tệp như searchPatterntrên là Directory.GetFiles()gì? Ví dụ: lọc các tệp có phần mở rộng .aspx và .ascx .
// TODO: Set the string 'searchPattern' to only get files with
// the extension '.aspx' and '.ascx'.
var filteredFiles = Directory.GetFiles(path, searchPattern);
Cập nhật : LINQ không phải là một tùy chọn , nó phải được searchPatterntruyền vào GetFiles, như được chỉ định trong câu hỏi.