Пример #1
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();
 }