Uredi

Deli z drugimi prek


FrameworkName.Equals Method

Definition

Returns a value that indicates whether this FrameworkName instance represents the same Framework version as a specified object or FrameworkName instance.

Overloads

Equals(Object)

Returns a value that indicates whether this FrameworkName instance represents the same .NET version as a specified object.

Equals(FrameworkName)

Returns a value that indicates whether this FrameworkName instance represents the same .NET version as a specified FrameworkName instance.

Equals(Object)

Source:
FrameworkName.cs
Source:
FrameworkName.cs
Source:
FrameworkName.cs

Returns a value that indicates whether this FrameworkName instance represents the same .NET version as 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

The object to compare to the current instance.

Returns

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

Remarks

The method converts obj to a FrameworkName object and calls the FrameworkName.Equals(FrameworkName) overload to test for equality. If the conversion does not succeed or if obj is null, the method returns false.

Applies to

Equals(FrameworkName)

Source:
FrameworkName.cs
Source:
FrameworkName.cs
Source:
FrameworkName.cs

Returns a value that indicates whether this FrameworkName instance represents the same .NET version as a specified FrameworkName instance.

public:
 virtual bool Equals(System::Runtime::Versioning::FrameworkName ^ other);
public bool Equals (System.Runtime.Versioning.FrameworkName other);
public bool Equals (System.Runtime.Versioning.FrameworkName? other);
override this.Equals : System.Runtime.Versioning.FrameworkName -> bool
Public Function Equals (other As FrameworkName) As Boolean

Parameters

other
FrameworkName

The object to compare to the current instance.

Returns

true if every component of the current FrameworkName object matches the corresponding component of other; otherwise, false.

Implements

Remarks

The method tests for equality by returning the result of the following comparisons:

  • An ordinal comparison of the Identifier property values of the current instance and other.

  • An ordinal comparison of the Profile property values of the current instance and other.

  • A comparison of the version properties by calling the Version.Equals method.

Applies to