Example #1
0
        public static string PrintToString(Node root)
        {
            var writer  = new StringBuilder();
            var printer = new NodePrinter(writer, true, true, true);

            printer.Print(root);
            return(writer.ToString());
        }
Example #2
0
 public override string ToString()
 {
     //var sb = new System.Text.StringBuilder();
     //foreach (var elb in templateRoot.attributeDataBindExpressList)
     //{
     //    sb.AppendLine(elb.ToString());
     //}
     //return sb.ToString();
     return(NodePrinter.PrintToString(root));
 }