Exemplo n.º 1
0
        public static IEnumerable <DirectoryData> GetAllDirectoryInfos(this DirectoryData directoryData)
        {
            yield return(directoryData);

            foreach (var child in directoryData.GetDirectories().SelectMany(GetAllDirectoryInfos))
            {
                yield return(child);
            }
        }