Ejemplo n.º 1
0
 /// <summary> Override this method if you want to customize how the node dumps
 /// out its children.
 ///
 /// </summary>
 /// <param name="prefix">
 /// </param>
 public virtual void Dump(string prefix)
 {
     if (children != null)
     {
         for (int i = 0; i < children.Length; ++i)
         {
             SimpleNode n = (SimpleNode)children[i];
             if (n != null)
             {
                 n.Dump(prefix + " ");
             }
         }
     }
 }
Ejemplo n.º 2
0
 public void Dump(string prefix)
 {
     Console.Out.WriteLine(this.ToString(prefix));
     if (this.children != null)
     {
         for (int i = 0; i < this.children.Length; i++)
         {
             SimpleNode simpleNode = (SimpleNode)this.children[i];
             if (simpleNode != null)
             {
                 simpleNode.Dump(prefix + " ");
             }
         }
     }
 }
Ejemplo n.º 3
0
        /* Override this method if you want to customize how the node dumps
         * out its children. */

        public void Dump(String prefix)
        {
            Console.Out.WriteLine(ToString(prefix));
            if (children != null)
            {
                for (int i = 0; i < children.Length; ++i)
                {
                    SimpleNode n = (SimpleNode)children[i];
                    if (n != null)
                    {
                        n.Dump(string.Format("{0} ", prefix));
                    }
                }
            }
        }