Does anyone know if you can use the comparison operators like ==, >=, <=, >, < etc... on two different System.Version objects to detect different versions and in what direction (like which of the two is a newer version vs older?)
zachattack05 70 Posting Pro in Training
Recommended Answers
Jump to PostSystem.Version cannot be inherited. But it already has the operators overloaded.
Higher version numbers are greater than lower version numbers. Higher version numbers are newer, if you are doing it right.
All 4 Replies
darkagn 315 Veteran Poster Featured Poster
Momerath 1,327 Nearly a Senior Poster Featured Poster
darkagn commented: Thanks for the correction and explanation :) +5
Mitja Bonca 557 Nearly a Posting Maven
zachattack05 70 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.