An array of type System.IO.FileInfo.
The DirectoryInfo.EnumerateFiles and DirectoryInfo.GetFiles methods differ as follows:
When you use DirectoryInfo.EnumerateFiles, you can start enumerating the collection of System.IO.FileInfo objects before the whole collection is returned.
When you use DirectoryInfo.GetFiles, you must wait for the whole array of System.IO.FileInfo objects to be returned before you can access the array.
Therefore, when you are working with many files and directories, DirectoryInfo.EnumerateFiles can be more efficient.
If there are no files in the System.IO.DirectoryInfo, this method returns an empty array.
The order of the returned file names is not guaranteed; use the erload:System.Array.Sort method if a specific sort order is required.
This method pre-populates the values of the following System.IO.FileInfo properties: