c#自带Version类

https://vimsky.com/examples/detail/csharp-class-system.version.html

本文整理汇总了C#中System.Version类的典型用法代码示例。

Version类属于System命名空间,在下文中一共展示了Version类的9个代码示例,这些例子默认根据受欢迎程度排序。

C#自带的Version判断版本号的大小:


Version version1 = new Version("1.0.0.25"); Version version2 = new Version("1.0.0.24"); Console.Write(version1 > version2); // True
posted @ 2022-10-27 17:00  yinghualeihenmei  阅读(259)  评论(0编辑  收藏  举报