FrameworkName.Equals Method (FrameworkName)

.NET Framework (current version)
 

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

Namespace:   System.Runtime.Versioning
Assembly:  System (in System.dll)

public bool Equals(
	FrameworkName other
)

Parameters

other
Type: System.Runtime.Versioning.FrameworkName

The object to compare to the current instance.

Return Value

Type: System.Boolean

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

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.0
Return to top
Show: