Version.Equals Method (Version)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

Public Function Equals ( _
    obj As Version _
) As Boolean
public bool Equals(
    Version obj
)

Parameters

Return Value

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

Implements

IEquatable<(Of <(T>)>)..::.Equals(T)

Remarks

This method implements the IEquatable<(Of <(T>)>) interface, and performs slightly better than the Equals method because it does not have to unbox the obj parameter.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Version Class

Equals Overload

System Namespace

Equals

CompareTo