VersionExtensions.CompareVersions

Compare two version strings.

public static int CompareVersions(string versionToCompare,
	string versionToCompareAgainst)

Return Value

0 - equal, 1 - greater than compareAgainst, -1 - smaller than, -2 - Version Format error

Parameters

versionToCompare
Semantic Version string

versionToCompareAgainst
Semantic Version string


See also:

Class VersionExtensions

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic