共用方式為


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

適用於