VersionTool.cs 455 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Y.Utils.VersionUtils
  6. {
  7. public class VersionTool
  8. {
  9. public static Version Format(string s)
  10. {
  11. //解析最新版本号
  12. Version version = null;
  13. try
  14. {
  15. version = new Version(s);
  16. }
  17. catch (Exception e) { }
  18. return version;
  19. }
  20. }
  21. }