Beispiel #1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            for (int i = 0; i <= PreceedingBlankLines; i++)
            {
                sb.AppendLine("");
            }
            foreach (string comment in Comments.PreceedingComments)
            {
                sb.AppendLine(Controller.Indent + comment);
            }
            sb.Append(GetXmlCommentsText());
            sb.Append(GetAttributesText());

            sb.Append(Controller.GetPrinterFor(this).Print());

            return(sb.ToString());
        }
Beispiel #2
0
 /// <summary>
 /// Gets the outer text of the node.
 /// </summary>
 /// <remarks>This is the method signature for a C# Function, the element text (<![CDATA[<element></element>]]>) for an XML Element, etc.</remarks>
 /// <returns>The outer text of the node.</returns>
 public override string GetOuterText()
 {
     return(Controller.GetPrinterFor(this).GetOuterText());
 }
Beispiel #3
0
 public override string ToString()
 {
     return(controller.GetPrinterFor(this).Print());
 }