Click or drag to resize

GACUtilCompareVersions Method

Compare the specified version strings in 'n.n.n.n' format. If one version string has fewer parts than other, the additional parts of the other version are ignored.

Namespace:  Nova.Utilities
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public static int CompareVersions(
	string version1,
	string version2
)

Parameters

version1
Type: SystemString
version2
Type: SystemString

Return Value

Type: Int32
0 if the versions are equal, -1 if version1 is less than version2, or 1 if version1 is greater than version2.
See Also