FrameworkName::Equality Operator (FrameworkName^, FrameworkName^)
Returns a value that indicates whether two FrameworkName objects represent the same .NET Framework version.
Assembly: System (in System.dll)
Parameters
- left
-
Type:
System.Runtime.Versioning::FrameworkName^
The first object to compare.
- right
-
Type:
System.Runtime.Versioning::FrameworkName^
The second object to compare.
Return Value
Type: System::Booleantrue if the left and right parameters represent the same .NET Framework version; otherwise, false.
The Equality method defines the operation of the equality operator for FrameworkName objects.
Languages that do not support custom operators can call the FrameworkName::Equals(FrameworkName^) method instead.
The following example uses the equality operator to determine whether a FrameworkName object that represents the running version of the .NET Framework is equal to a supported version of the .NET Framework. Note that the two versions are not equal because they do not have identical version numbers.
Available since 10
.NET Framework
Available since 4.0