 | 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.GlobalsAssembly: NetEti.Global (in NetEti.Global.dll) Version: 1.0.0+ad672dc5430e1683eae7461ce3945c8e9dce1c49
Syntaxpublic static int CompareVersion(
string version1,
string version2
)
Public Shared Function CompareVersion (
version1 As String,
version2 As String
) As Integer
public:
static int CompareVersion(
String^ version1,
String^ version2
)
static member CompareVersion :
version1 : string *
version2 : string -> int
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