DebugSupport.cs 465 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace LearnBridgeNet
  8. {
  9. internal static class DebugSupport
  10. {
  11. private static readonly List<object> Objects = new List<object>();
  12. [Conditional("DEBUG")]
  13. public static void Add(object obj) => Objects.Add(obj);
  14. public static object[] GetObjects() => Objects.ToArray();
  15. }
  16. }