语言

Type.Inequality(Type, Type) 操作员

定义

指示两个 Type 对象是否不相等。

public:
 static bool operator !=(Type ^ left, Type ^ right);
public static bool operator !=(Type? left, Type? right);
public static bool operator !=(Type left, Type right);
static member op_Inequality : Type * Type -> bool
Public Shared Operator != (left As Type, right As Type) As Boolean

参数

left
Type

要比较的第一个对象。

right
Type

要比较的第二个对象。

返回

true 如果 left 不等于 right,则为 ;否则为 false。

适用于