You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

  1. using Apewer;
  2. using Apewer.Network;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Drawing;
  6. using System.Text;
  7. namespace Apewer.Run
  8. {
  9. class Extensions
  10. {
  11. public Extensions()
  12. {
  13. Sub();
  14. }
  15. static void Sub()
  16. {
  17. var list = new List<IEnumerable<string>>()
  18. {
  19. new string[] { "aa", "bb", "c" }.Sub(),
  20. new string[] { "aa", "bb", "c" }.Sub(-2),
  21. new string[] { "aa", "bb", "c" }.Sub(-3,2),
  22. new string[] { "aa", "bb", "c" }.Sub(-2,3),
  23. new string[] { "aa", "bb", "c" }.Sub(-2,8),
  24. new string[] { "aa", "bb", "c" }.Sub(1),
  25. new string[] { "aa", "bb", "c" }.Sub(1,1),
  26. new string[] { "aa", "bb", "c" }.Sub(1,5),
  27. new string[] { "aa", "bb", "c" }.Sub(6),
  28. new string[] { "aa", "bb", "c" }.Sub(6,5),
  29. };
  30. foreach (var i in list) Console.WriteLine(TextUtility.Join("|", i));
  31. }
  32. }
  33. }