Type.Equality(Type, Type) Type.Equality(Type, Type) Type.Equality(Type, Type) Type.Equality(Type, Type) Operator

定义

指示两个 Type 对象是否相等。Indicates whether two Type objects are equal.

public:
 static bool operator ==(Type ^ left, Type ^ right);
public static bool operator == (Type left, Type right);
static member ( = ) : Type * Type -> bool
Public Shared Operator == (left As Type, right As Type) As Boolean

参数

left
Type Type Type Type

要比较的第一个对象。The first object to compare.

right
Type Type Type Type

要比较的第二个对象。The second object to compare.

返回

如果 true 等于 left,则为 right;否则为 falsetrue if left is equal to right; otherwise, false.

适用于