Program.cs 661 B

12345678910111213141516171819202122232425
  1. using System.Diagnostics;
  2. using DistinctChar;
  3. namespace Z3
  4. {
  5. internal class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. var traceListener = new TextWriterTraceListener("log_trace.txt");
  10. Trace.Listeners.Add(traceListener);
  11. var traceConsWriter = new TextWriterTraceListener(Console.Out);
  12. Trace.Listeners.Add(traceConsWriter);
  13. Trace.AutoFlush = true;
  14. Debug.AutoFlush = true;
  15. DistinctChars obj = new DistinctChars();
  16. obj.Str1 = "abcde";
  17. obj.Str2 = "bcfr";
  18. Console.WriteLine(obj.GetDistinctStr());
  19. }
  20. }
  21. }