コード例 #1
0
 private static string DisplayResultSuiteToString(ResultSuite suite, ResultColumns columns, BenchmarkResult standardForScore)
 {
     using (MemoryStream stream = new MemoryStream())
         using (StreamWriter writer = new StreamWriter(stream))
             using (StreamReader reader = new StreamReader(stream))
             {
                 suite.Display(writer, columns, standardForScore);
                 writer.Flush();
                 stream.Position = 0;
                 return(reader.ReadToEnd());
             }
 }
コード例 #2
0
 private static string DisplayResultSuiteToString(ResultSuite suite, ResultColumns columns, BenchmarkResult standardForScore)
 {
     using (MemoryStream stream = new MemoryStream())
     using (StreamWriter writer = new StreamWriter(stream))
     using (StreamReader reader = new StreamReader(stream))
     {
         suite.Display(writer, columns, standardForScore);
         writer.Flush();
         stream.Position = 0;
         return reader.ReadToEnd();
     }
 }