_Type.Equals Method

Definition

Provides COM objects with version-independent access to the Equals method.

Overloads

Equals(Object)

Provides COM objects with version-independent access to the Equals(Object) method.

Equals(Type)

Provides COM objects with version-independent access to the Equals(Type) method.

Remarks

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The Type.Equals method determines if the underlying system type of the current Type is the same as the underlying system type of the specified Object or Type.

.

Equals(Object)

Provides COM objects with version-independent access to the Equals(Object) method.

C#
public bool Equals(object other);

Parameters

other
Object

The Object whose underlying system type is to be compared with the underlying system type of the current Type.

Returns

true if the underlying system type of o is the same as the underlying system type of the current Type; otherwise, false.

Remarks

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The Type.Equals method determines if the underlying system type of the current Type is the same as the underlying system type of the specified Object.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Equals(Type)

Provides COM objects with version-independent access to the Equals(Type) method.

C#
public bool Equals(Type o);

Parameters

o
Type

The Type whose underlying system type is to be compared with the underlying system type of the current Type.

Returns

true if the underlying system type of o is the same as the underlying system type of the current Type; otherwise, false.

Remarks

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The Type.Equals method determines if the underlying system type of the current Type is the same as the underlying system type of the specified Type.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1