Compares two version strings.
Class: YetaWF.Core.Packages.Package
Namespace: YetaWF.Core.Packages
Assembly: YetaWF.Core
public static int CompareVersion( string? vers1, string? vers2 );
vers1
First version string.
vers2
Second version string.
Returns 0 for equality, -1 if the first version is less than the second, 1 if the first version is greater than the second.
Version strings have the format n.n.n, normally 3 components, but this function supports any number of components, including versions strings with unequal number of components.
See Also YetaWF.Core.Packages.Package ClassYetaWF.Core Overview
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com