I would like to get the logic to find out latest versions among two version numbers
for e.g for blackberry mobile OS, it will return the version number like this ‘6.0.1’. Some other os might return 6.1 only or 6.1.2.4 something like that. I wish to get logic in C# to find the latest version of the provided version numbers.
for e.g.
i. Find the latest of the below
1. 5.2.4
2. 6.1.6
ii.
1. 6.1.4.6
2. 1.8.4.2
You can use the
Versionclass:If you have the versions as strings, you can parse them with
Version.Parse.