Microsoft.VisualStudio.Project.ProjectNode.CloseAllNodes C# (CSharp) Method

CloseAllNodes() private static method

Recusively parses the tree and closes all nodes.
private static CloseAllNodes ( HierarchyNode node ) : void
node HierarchyNode The subtree to close.
return void
        private static void CloseAllNodes(HierarchyNode node)
        {
            for (HierarchyNode n = node.FirstChild; n != null; n = n.NextSibling)
            {
                if (n.FirstChild != null)
                {
                    CloseAllNodes(n);
                }

                n.Close();
            }
        }
ProjectNode