This documentation is archived and is not being maintained.

FrameworkName.Equals Method (FrameworkName)

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.

Implements

IEquatable<T>.Equals(T)

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.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: