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

ShouldIgnoreAssembly() private static method

Determines whether the specified assembly must be ignored by the type cache.
private static ShouldIgnoreAssembly ( Assembly assembly ) : bool
assembly System.Reflection.Assembly The assembly.
return bool
        private static bool ShouldIgnoreAssembly(Assembly assembly)
        {
            if (assembly == null)
            {
                return true;
            }

#if NET
            if (assembly.ReflectionOnly)
            {
                return true;
            }
#endif

            var assemblyFullName = assembly.FullName;
            if (assemblyFullName.Contains("Anonymously Hosted DynamicMethods Assembly"))
            {
                return true;
            }

            foreach (var evaluator in ShouldIgnoreAssemblyEvaluators)
            {
                if (evaluator.Invoke(assembly))
                {
                    return true;
                }
            }

            return false;
        }