Mono Class Library: System.Version Overview | Members

System.Version GreaterThan Operator

Determines whether the first instance of Version is greater than the second instance of Version. [Edit]

public static bool operator> (Version v1, Version v2)

Parameters

v1
An instance of the Version class. [Edit]
v2
An instance of the Version class. [Edit]

Returns

A bool where true indicates v1 is greater than v2; otherwise false. If v1 is null, false is returned. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionv2 is a null reference. [Edit]

Remarks

The parts of the version number are compared independently starting with the Version.Major property and then the Version.Minor, Version.Build, and Version.Revision properties, in order. This method returns as soon as one of the properties is determined not to be equal. [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0