共用方式為


IEqualityOperators<TSelf,TOther,TResult>.Equality(TSelf, TOther) 運算子

定義

比較兩個值以判斷相等。

public:
 static TResult operator ==(TSelf left, TOther right);
public static abstract TResult operator == (TSelf? left, TOther? right);
static member ( = ) : 'Self * 'Other -> 'Result
Public Shared Operator == (left As TSelf, right As TOther) As TResult

參數

left
TSelf

要與 right比較的值。

right
TOther

要與 left比較的值。

傳回

TResult

如果 true 等於 left,則為 right,否則為 false

適用於