Szerkesztés

Megosztás a következőn keresztül:


Version.Equals Method

Definition

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

obj
Object

An object to compare with the current Version object, or null.

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

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

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

obj
Version

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.

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