예제 #1
0
        /// <summary>
        /// This is used to visit a list of namespaces
        /// </summary>
        /// <param name="spaces">The list of namespaces to visit</param>
        protected virtual void VisitNamespaces(NamespaceList spaces)
        {
            // Visit the namespaces in sorted order
            foreach (Namespace space in spaces.OrderBy(s => s.FullName))
            {
                if (filter.IsExposedNamespace(space))
                {
                    this.VisitNamespace(space);
                }

                if (this.Canceled)
                {
                    break;
                }
            }
        }
예제 #2
0
        /// <summary>
        /// This is used to visit a list of namespaces
        /// </summary>
        /// <param name="spaces">The list of namespaces to visit</param>
        protected virtual void VisitNamespaces(NamespaceList spaces)
        {
            // Visit the namespaces in sorted order
            var sortedNamespaces = spaces.OrderBy(s => s.FullName).ToList();

            foreach(Namespace space in sortedNamespaces)
            {
                if(filter.IsExposedNamespace(space))
                    this.VisitNamespace(space);

                if(this.Canceled)
                    break;
            }
        }