Ejemplo n.º 1
0
        /// <summary>
        /// Get all types referenced by the types from the list of assemblies.
        /// </summary>
        /// <param name="assemblies"></param>
        /// <param name="settings"></param>
        /// <returns></returns>
        public static TypeCollection ForReferencedTypes(IEnumerable <Assembly> assemblies, ReflectionSettings settings = null)
        {
            var typeCollection = new TypeCollection();

            typeCollection.GetReferencedTypes(assemblies, settings);
            return(typeCollection);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Get all types referenced by the types from specified assembly.
        /// </summary>
        /// <param name="assembly"></param>
        /// <param name="settings"></param>
        /// <returns></returns>
        public static TypeCollection ForReferencedTypes(Assembly assembly, ReflectionSettings settings = null)
        {
            var typeCollection = new TypeCollection();

            typeCollection.GetReferencedTypes(assembly, settings);
            return(typeCollection);
        }