Single.Inequality(Single, Single) 操作员

定义

返回一个值,该值指示两个指定的 Single 值是否不相等。

public:
 static bool operator !=(float left, float right);
public:
 static bool operator !=(float left, float right) = System::Numerics::IEqualityOperators<float, float, bool>::op_Inequality;
public static bool operator != (float left, float right);
static member op_Inequality : single * single -> bool
Public Shared Operator != (left As Single, right As Single) As Boolean

参数

left
Single

要比较的第一个值。

right
Single

要比较的第二个值。

返回

如果 leftright 不相等,则为 true;否则为 false

实现

注解

方法 Inequality 定义值的不相等运算符 Single

适用于