Traceback.cs 417 B

12345678910111213141516171819
  1. using System;
  2. namespace MISTBowl_Brackets
  3. {
  4. public static class Traceback
  5. {
  6. static string m_traceback = string.Empty;
  7. public static void Write(string s)
  8. {
  9. m_traceback += '\t' + s;
  10. if (!s.EndsWith("\r", StringComparison.CurrentCulture) && !s.EndsWith("\n", StringComparison.CurrentCulture))
  11. m_traceback += Environment.NewLine;
  12. }
  13. public static string Read()
  14. {
  15. return m_traceback;
  16. }
  17. }
  18. }