Mono Class Library: System.Version Overview | Members

System.Version Equality Operator

Determines whether two instances of Version are equal. [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 and v2 have equal Version.Major, Version.Minor, Version.Build, and Version.Revision properties, or both v1 and v2 are null; otherwise false. [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