示例#1
0
        private static void WalkSubDirectories(DirectoryInfo directory, IDirectoryVisitor visitor)
        {
            visitor.VisitDirectory(directory);

            foreach (var subDirectory in directory.GetDirectories())
            {
                WalkSubDirectories(subDirectory, visitor);
            }
        }
示例#2
0
        private static void WalkSubDirectories(DirectoryInfo directory, IDirectoryVisitor visitor)
        {
            visitor.VisitDirectory(directory);

            foreach (var subDirectory in directory.GetDirectories())
            {
                WalkSubDirectories(subDirectory, visitor);
            }
        }
示例#3
0
 public void WalkSubDirectories(string directory, IDirectoryVisitor visitor)
 {
     WalkSubDirectories(new DirectoryInfo(directory), visitor);
 }
示例#4
0
 public void WalkSubDirectories(string directory, IDirectoryVisitor visitor)
 {
     WalkSubDirectories(new DirectoryInfo(directory), visitor);
 }