Ejemplo n.º 1
0
 private static Repository FindFirstCategoryRepository(string path)
 {
     foreach (Repository repo in RepositoryCategories.SelectMany(category => category.Repositories))
     {
         if (repo.Path != null && repo.Path.Equals(path, StringComparison.CurrentCultureIgnoreCase))
         {
             return(repo);
         }
     }
     return(null);
 }
Ejemplo n.º 2
0
 private static Repository FindFirstCategoryRepository(string path)
 {
     return(RepositoryCategories
            .SelectMany(category => category.Repositories)
            .FirstOrDefault(repo => repo.Path != null && repo.Path.Equals(path, StringComparison.CurrentCultureIgnoreCase)));
 }