語言

Type.Equality(Type, Type) 運算子

定義

表示兩個 Type 物體是否相等。

public:
 static bool operator ==(Type ^ left, Type ^ right);
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

第一個比較的對象。

right
Type

第二個比較物件。

傳回

true若 left 等於 right;否則 。 false

適用於