Single.Inequality(Single, Single) 操作员

定义

返回一个值,该值指示两个指定的 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

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

right
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.

适用于