Compare version numbers without using split function
Can you use the Version class? https://learn.microsoft.com/en-us/dotnet/api/system.version It has an IComparable interface. Be aware this won’t work with a 5-part version string like you’ve shown (is that really your version string?). Assuming your inputs are strings, here’s a working sample with the normal .NET 4-part version string: static class Program { static void Main() { … Read more