简体   繁体   中英

What data type I should use for versioning?

Is there data type for software version in C#? I would like to be able to easily compare 5.02.0002.2 and 5.02.0003.0 (which one is higher).

看看System.Version ,它完全符合您的要求,也可以被.NET程序集使用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM