Catel.Reflection.TypeCache.GetAssemblyTypes C# (CSharp) Method

GetAssemblyTypes() private static method

private static GetAssemblyTypes ( List assemblies ) : HashSet>.Dictionary
assemblies List
return HashSet>.Dictionary
        private static Dictionary<Assembly, HashSet<Type>> GetAssemblyTypes(List<Assembly> assemblies)
        {
            // Multithreaded invocation
            var types = (from assembly in assemblies
                         select new KeyValuePair<Assembly, HashSet<Type>>(assembly, new HashSet<Type>(assembly.GetAllTypesSafely())));

#if SILVERLIGHT || PCL
            var results = types;
#else
            var results = types.AsParallel();
#endif

            return results.ToDictionary(p => p.Key, p => p.Value);
        }