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()); } }
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(); } }