System.Version.Equals Method

Returns a value indicating whether the current Version object and a specified Version object represent the same value.

Syntax

public bool Equals (Version obj)

Parameters

obj
A Version object to compare to the current Version object, or null.

Returns

true if every component of the current Version object matches the corresponding component of the obj parameter; otherwise, false.

Remarks

This method implements the IEquatable`1 interface, and performs slightly better than the Version.Equals(object) method because it does not have to unbox the obj parameter.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0