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

適用於