c# get files name only in directory code example
Example: c# get files of type in directory
string[] files = System.IO.Directory.EnumerateFiles(directory, "*.*").ToArray();
string[] files = System.IO.Directory.EnumerateFiles(directory, "*.*").ToArray();