Traceback.cs 542 B

1234567891011121314151617181920212223
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. using System;
  5. namespace QuranCalc
  6. {
  7. public class Traceback
  8. {
  9. private static string m_traceback = string.Empty;
  10. public static void Write(string s)
  11. {
  12. m_traceback += s;
  13. if (!s.EndsWith ("\r") && !s.EndsWith ("\n"))
  14. m_traceback += Environment.NewLine;
  15. }
  16. public static string Read()
  17. {
  18. return m_traceback;
  19. }
  20. }
  21. }