John Ryann
John Ryann

Reputation: 2393

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).

Upvotes: 5

Views: 1155

Answers (1)

Oliver Hanappi
Oliver Hanappi

Reputation: 12346

Have a look at System.Version, it does exactly what you want and is used by .NET assemblies as well.

Upvotes: 11

Related Questions