Sometime, during your C# coding activity,  you need to query the list of files in a directory and the easy way is to use the .NET framework Directory class.

As you have probably noticed Directory.GetFiles can be slow, or in the worst case also too much slow.

I have found this old article in the famous CodeProject web site.

The article has been written by a brilliant Senior Developer (wilsone8) and it include the code source of a Faster Directory Enumerator.

 

Tagged on:             
This site uses cookies. Find out more about this site’s cookies.
P.IVA 01926340280