Esempio n. 1
0
        private static IEnumerable <string> FindPotentialEmptyDirectories(string path)
        {
            List <string> result = new List <string>();

            ProjectStateRestHandler.FindPotentialEmptyDirectories(path, result);
            return(result);
        }
        private static IEnumerable <string> FindPotentialEmptyDirectories(string path)
        {
            List <string> stringList = new List <string>();

            ProjectStateRestHandler.FindPotentialEmptyDirectories(path, (ICollection <string>)stringList);
            return((IEnumerable <string>)stringList);
        }
Esempio n. 3
0
        private static string[] FindEmptyDirectories(string path, string[] files)
        {
            IEnumerable <string> source = ProjectStateRestHandler.FindPotentialEmptyDirectories(path);

            return((from d in source
                    where !files.Any((string f) => f.StartsWith(d))
                    select d).ToArray <string>());
        }
 private static string[] FindEmptyDirectories(string path, string[] files)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: reference to a compiler-generated method
     return(ProjectStateRestHandler.FindPotentialEmptyDirectories(path).Where <string>(new Func <string, bool>(new ProjectStateRestHandler.\u003CFindEmptyDirectories\u003Ec__AnonStorey27()
     {
         files = files
     }.\u003C\u003Em__37)).ToArray <string>());
 }
 private static void FindPotentialEmptyDirectories(string path, ICollection <string> result)
 {
     string[] directories = Directory.GetDirectories(path);
     if (directories.Length == 0)
     {
         result.Add(path.Replace('\\', '/'));
         return;
     }
     string[] array = directories;
     for (int i = 0; i < array.Length; i++)
     {
         string path2 = array[i];
         ProjectStateRestHandler.FindPotentialEmptyDirectories(path2, result);
     }
 }
 private static void FindPotentialEmptyDirectories(string path, ICollection <string> result)
 {
     string[] directories = Directory.GetDirectories(path);
     if (directories.Length == 0)
     {
         result.Add(path.Replace('\\', '/'));
     }
     else
     {
         foreach (string path1 in directories)
         {
             ProjectStateRestHandler.FindPotentialEmptyDirectories(path1, result);
         }
     }
 }