public override void Run() { foreach (Assembly a in Assemblies) { writer.WriteLine("Assembly: FullName='{0}'; Location='{1}'", a.FullName, a.Location); using (Indenter i = Indent()) { foreach (string ns in Namespaces(a)) { writer.WriteLine("Namespace: {0}", ns); using (Indenter i2 = Indent()) { foreach (Type type in Types(a, ns)) { Node root = new Node(Formatter, Finder); // new GroupingNodeFinder (f)); // new ExplicitNodeFinder()); // root.Extra = new NodeInfo (null, type, NodeTypes.Type); root.NodeInfo = new NodeInfo(null, type); ShowNode(root, writer, maxDepth); writer.WriteLine(); } } } } } }
private static void ShowNode (Node root, IndentingTextWriter writer, int maxDepth) { writer.WriteLine (root.Description); if (maxDepth > 0) { using (Indenter i = new Indenter (writer)) { foreach (Node child in root.GetChildren()) { ShowNode (child, writer, maxDepth-1); } } } }
private static void ShowNode(Node root, IndentingTextWriter writer, int maxDepth) { writer.WriteLine(root.Description); if (maxDepth > 0) { using (Indenter i = new Indenter(writer)) { foreach (Node child in root.GetChildren()) { ShowNode(child, writer, maxDepth - 1); } } } }