Single.Inequality(Single, Single) Single.Inequality(Single, Single) Single.Inequality(Single, Single) Single.Inequality(Single, Single) Operator

定义

返回一个值,该值指示两个指定的 Single 值是否不相等。Returns a value that indicates whether two specified Single values are not equal.

public:
 static bool operator !=(float left, float right);
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 Single Single Single

要比较的第一个值。The first value to compare.

right
Single Single Single Single

要比较的第二个值。The second value to compare.

返回

如果 leftright 不相等,则为 true;否则为 falsetrue if left and right are not equal; otherwise, false.

注解

Inequality方法定义为不等运算符Single值。The Inequality method defines the inequality operator for Single values.

适用于