public static string PrintToString(Node root) { var writer = new StringBuilder(); var printer = new NodePrinter(writer, true, true, true); printer.Print(root); return(writer.ToString()); }
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)); }