The following methods of class DirectoryInfoWrapper returns results as an IEnumerable which can be lazily evaluated somewhat, but current code returns results as an array which has to be fully populated before it can return.
In some cases, especially when you are working with remote file systems this difference is crucial from performance stand of point.
As far as I can see problem is in the implementation of Converters class, namely all methods of this class returns results as an array instead of IEnumerable
For more information please see here:
- https://msdn.microsoft.com/en-us/library/dd383571.aspx
- http://stackoverflow.com/questions/5669617/what-is-the-difference-between-directory-enumeratefiles-vs-directory-getfiles
The following methods of class DirectoryInfoWrapper returns results as an IEnumerable which can be lazily evaluated somewhat, but current code returns results as an array which has to be fully populated before it can return.
In some cases, especially when you are working with remote file systems this difference is crucial from performance stand of point.
As far as I can see problem is in the implementation of Converters class, namely all methods of this class returns results as an array instead of IEnumerable
For more information please see here: