I am using Directory.EnumerateFiles() and Directory.GetFiles() to get the count of files in a specific directory in c#. The problem is that theses methods are slow because they enumerate files to get there count.
How to get the count of files in Directory without enumerating files in c#?