private IEnumerable <string> DiscoverFilePathsFromNamespaces(string[] namespaces) { return(AssemblyLoadingManager.Extensions().Select(searchPattern => { return namespaces.Length == 0 ? PlatformProvider.Current.GetFiles(_rootPath, searchPattern) : namespaces.Select( @namespace => PlatformProvider.Current.GetFiles(_rootPath).Select(t => t.ToUpper()) .Where(t => t.Contains(@namespace.ToUpper()) && t.EndsWith(searchPattern.ToUpper()))) .SelectMany(t => t.ToArray()) .ToArray(); }).SelectMany(k => k)); }