Пример #1
0
        /// <summary>
        /// Creates a list of types based on all the assemblies in the current AppDomain
        /// </summary>
        /// <returns>A list of types that can have predicates and conditions applied to it.</returns>
        public static Types InCurrentDomain()
        {
            var currentDomain = new List <Assembly>();

            foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
            {
                if (!_exclusionTree.GetAllMatchingNames(assembly.FullName).Any())
                {
                    currentDomain.Add(assembly);
                }
            }

            return(Types.InAssemblies(currentDomain));
        }