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

适用于