I need to search a root folder for particular subdirectory named "XYZ","ABC". And need to get the filenames from these two folder by iterating these two folder one by one.
I have used the below code to find subdirectory but not sure how to find filenames from this list.
IEnumerable<string> list = Directory.GetDirectories(root).Where(s => s.Equals("XYZ"));