Exemplo n.º 1
0
 public IEnumerable <Type> GetMatchingTypes()
 {
     return
         (CandidateAssemblies
          .Where(x => AssemblyFilters.All(p => p(x)))
          .SelectMany(x =>
     {
         try
         {
             return x.GetTypes();
         }
         catch
         {
             return new Type[] {};
         }
     })
          .Where(x => !TypeFilters.Any(p => p(x))));
 }
Exemplo n.º 2
0
 public IEnumerable <Assembly> GetAssemblies()
 {
     EnsureLoaded();
     return(loadedAssemblies.Where(a => AssemblyFilters.All(func => func(a))));
 }