How to read file name with dll
extension from a directory and from its subfolders recursively using LINQ or LAMBDA expression.
Now i\'m using Nested for
IEnumerable filenames = Directory.GetFiles(searchDirectory, "*.dll",
SearchOption.AllDirectories)
.Select(s => Path.GetFileName(s));
Directory.GetFiles()
returns the full path of files that match the specified search pattern in the specified directory. Select
projects each element of fullpath sequence into a new form, only the filename.