Click or drag to resize

GlobalCompareVersion Method

Compares two version strings consisting of numbers separated by '.', e.g.: 1.0.0.10 with 1.0.0.9.

Compares two version-strings, consisting of '.' separated lines, i.e.: 1.0.0.10 with 1.0.0.9.


Namespace: NetEti.Globals
Assembly: NetEti.Global (in NetEti.Global.dll) Version: 1.0.0+ad672dc5430e1683eae7461ce3945c8e9dce1c49
Syntax
public static int CompareVersion(
	
	string version1,
	
	string version2
)

Parameters

version1  String

Version string in the format 1.0.0.10.

Version-string of format 1.0.0.10.

version2  String

Version string in the format 1.0.0.9.

Version-string of format 1.0.0.9.

Return value

Int32

Returns 1 if version 1 is greater than version 2, 0 if equal, otherwise -1.

Returns 1 if version 1 is greater than version 2, zero if equal, -1 otherways

See also