Version.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value indicating whether two Version object represent the same value.
Overloads
Equals(Object) |
Returns a value indicating whether the current Version object is equal to a specified object. |
Equals(Version) |
Returns a value indicating whether the current Version object and a specified Version object represent the same value. |
Equals(Object)
- Source:
- Version.cs
- Source:
- Version.cs
- Source:
- Version.cs
Returns a value indicating whether the current Version object is equal to a specified object.
public:
override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
public override bool Equals (object? obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
Parameters
Returns
true
if the current Version object and obj
are both Version objects, and every component of the current Version object matches the corresponding component of obj
; otherwise, false
.
See also
Applies to
Equals(Version)
- Source:
- Version.cs
- Source:
- Version.cs
- Source:
- Version.cs
public:
virtual bool Equals(Version ^ obj);
public bool Equals (Version obj);
public bool Equals (Version? obj);
override this.Equals : Version -> bool
Public Function Equals (obj As Version) As Boolean
Parameters
Returns
true
if every component of the current Version object matches the corresponding component of the obj
parameter; otherwise, false
.
Implements
Remarks
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.
See also
Applies to
.NET