コード例 #1
0
 public void Dump(Indenter stream)
 {
     // display the nodes in reverse order of creation as we create the tree bottom-up so the last are the topmost nodes
     for (int i = _count - 1; i >= 0; i--)
     {
         Node node = _index[i];
         stream.WriteLine("{0,4:D4} {1} {2}:", node.Id, node.ToString(), node.Position.ToString());
         stream.Indent();
         node.DumpFields(stream);
         stream.Dedent();
         stream.WriteLine();
     }
 }
コード例 #2
0
ファイル: Node.cs プロジェクト: bencz/Beryl
 public void Dump(Indenter stream)
 {
     // display the nodes in reverse order of creation as we create the tree bottom-up so the last are the topmost nodes
     for (int i = _count - 1; i >= 0; i--)
     {
         Node node = _index[i];
         stream.WriteLine("{0,4:D4} {1} {2}:", node.Id, node.ToString(), node.Position.ToString());
         stream.Indent();
         node.DumpFields(stream);
         stream.Dedent();
         stream.WriteLine();
     }
 }