fastest way to get number of files in directory c# code example
Example: c# get number of files in directory
int count = System.IO.Directory.EnumerateFiles(String path).Count();
int count = System.IO.Directory.EnumerateFiles(String path).Count();