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)))); }
public IEnumerable <Assembly> GetAssemblies() { EnsureLoaded(); return(loadedAssemblies.Where(a => AssemblyFilters.All(func => func(a)))); }