# Complex.Inequality(Complex, Complex)Complex.Inequality(Complex, Complex)Complex.Inequality(Complex, Complex)Complex.Inequality(Complex, Complex) Operator

## 定義

2 つの複素数が等しくないかどうかを示す値を返します。Returns a value that indicates whether two complex numbers are not equal.

``````public:
static bool operator !=(System::Numerics::Complex left, System::Numerics::Complex right);``````
``public static bool operator != (System.Numerics.Complex left, System.Numerics.Complex right);``
``static member op_Inequality : System.Numerics.Complex * System.Numerics.Complex -> bool``
``Public Shared Operator != (left As Complex, right As Complex) As Boolean``

#### パラメーター

left
Complex Complex Complex Complex

right
Complex Complex Complex Complex

#### 戻り値

`left``right` が等しくない場合は `true`。それ以外の場合は `false``true` if `left` and `right` are not equal; otherwise, `false`.

## 注釈

Equalityメソッドは、複素数の非等値演算子の動作を定義します。The Equality method defines the operation of the inequality operator for complex numbers. 次のようなコードが有効にします。It enables code such as the following:

``````Complex c1 = new Complex(12.6, 4.3);
Complex c2 = new Complex(11.1, 8.9);
if (c1 != c2)
``````
``````Dim c1 As New Complex(12.6, 4.3)
Dim c2 As New Complex(11.1, 8.9)
If c1 <> c2 Then
``````

カスタム演算子をサポートしない言語を呼び出すことによって非等値テストできます、Equals(Complex)メソッドとその値を反転します。Languages that do not support custom operators can test for inequality by calling the Equals(Complex) method and reversing its value.