IEqualityOperators<TSelf,TOther,TResult>.Inequality 操作员

定义

比较两个值以确定不相等性。

public:
 static TResult operator !=(TSelf left, TOther right);
public static abstract TResult operator != (TSelf? left, TOther? right);
static member op_Inequality : '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

适用于