Esempio n. 1
0
 static string FormatTextFromCalculator(FinancialCalculator calc)
 {
     using (var stream = new MemoryStream())
     {
         calc.Save(stream);
         stream.Position = 0;
         using (var reader = new StreamReader(stream))
         {
             var result = reader.ReadToEnd();
             return result;
         }
     }
 }