Equals Method (Version)
Collapse the table of content
Expand the table of content

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)

public bool Equals(
	Version obj
)

Parameters

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

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<T>.Equals(T)

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft