Program.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Masuit.Tools.Files;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. namespace Test
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. byte[] bytes = ClassZip.ZipStream(new List<string>()
  11. {
  12. @"D:\vsix2017\ReSharper\JetBrains Resharper 2018.3 Patch\JetBrains Resharper 2018.2.x AutoPatch.cmd",
  13. @"D:\vsix2017\ReSharper\JetBrains Resharper 2018.3 Patch\JetBrains Resharper 2018.3 Patch.cmd",
  14. @"D:\vsix2017\ReSharper\JetBrains Resharper 2018.3 Patch\sfk190.exe",
  15. });
  16. FileStream fs = new FileStream(@"D:\1.zip", FileMode.OpenOrCreate, FileAccess.ReadWrite);
  17. fs.Write(bytes, 0, bytes.Length);
  18. }
  19. }
  20. public class A
  21. {
  22. public C C { get; set; }
  23. public List<C> List { get; set; }
  24. }
  25. public class B
  26. {
  27. public C C { get; set; }
  28. public List<D> List { get; set; }
  29. }
  30. public class C
  31. {
  32. public string MyProperty { get; set; }
  33. public D Obj { get; set; }
  34. }
  35. public class D
  36. {
  37. public string MyProperty { get; set; }
  38. public C Obj { get; set; }
  39. }
  40. }