Ejemplo n.º 1
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public DebugReport(DebugReportFormatter formatter)
 {
     this.formatter = formatter;
     report = new List<ReportLine>(200);
     currentDepth = 0;
     enabled = true;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Output the entire report as a single large string, with line breaks
 /// </summary>
 /// <returns>string report</returns>
 public virtual string ToString(DebugReportFormatter formatter)
 {
     StringBuilder sb = new StringBuilder(report.Count * 80);
     sb.Append(formatter.Header(this));
     foreach (ReportLine line in report)
     {
         sb.Append(formatter.SetMarkUp(this, line));
     }
     sb.Append(formatter.Footer(this));
     return sb.ToString();
 }