## 重载

 Add(Double, Complex) 将一个双精度实数与一个复数相加，并返回结果。Adds a double-precision real number to a complex number and returns the result. Add(Complex, Double) 将一个复数与一个双精度实数相加，并返回结果。Adds a complex number to a double-precision real number and returns the result. Add(Complex, Complex) 将两个复数相加，并返回结果。Adds two complex numbers and returns the result.

## 示例

``````using System;
using System.Numerics;

public class Example
{
public static void Main()
{
Complex[] values= { new Complex(12.3, -1.4),
new Complex(-6.2, 3.1),
new Complex(8.9, 1.5) };
foreach (var c1 in values)
foreach (var c2 in values)
Console.WriteLine("{0} + {1} = {2}", c1, c2,
}
}
// The example displays the following output:
//       (12.3, -1.4) + (12.3, -1.4) = (24.6, -2.8)
//       (12.3, -1.4) + (-6.2, 3.1) = (6.1, 1.7)
//       (12.3, -1.4) + (8.9, 1.5) = (21.2, 0.1)
//       (-6.2, 3.1) + (12.3, -1.4) = (6.1, 1.7)
//       (-6.2, 3.1) + (-6.2, 3.1) = (-12.4, 6.2)
//       (-6.2, 3.1) + (8.9, 1.5) = (2.7, 4.6)
//       (8.9, 1.5) + (12.3, -1.4) = (21.2, 0.1)
//       (8.9, 1.5) + (-6.2, 3.1) = (2.7, 4.6)
//       (8.9, 1.5) + (8.9, 1.5) = (17.8, 3)
``````
``````Imports System.Numerics

Module modMain
Public Sub Main()
Dim values() As Complex = { New Complex(12.3, -1.4),
New Complex(-6.2, 3.1),
New Complex(8.9, 1.5) }
For Each c1 In values
For Each c2 In values
Console.WriteLine("{0} + {1} = {2}", c1, c2,
Next
Next
End Sub
End Module
' The example displays the following output:
'       (12.3, -1.4) + (12.3, -1.4) = (24.6, -2.8)
'       (12.3, -1.4) + (-6.2, 3.1) = (6.1, 1.7)
'       (12.3, -1.4) + (8.9, 1.5) = (21.2, 0.1)
'       (-6.2, 3.1) + (12.3, -1.4) = (6.1, 1.7)
'       (-6.2, 3.1) + (-6.2, 3.1) = (-12.4, 6.2)
'       (-6.2, 3.1) + (8.9, 1.5) = (2.7, 4.6)
'       (8.9, 1.5) + (12.3, -1.4) = (21.2, 0.1)
'       (8.9, 1.5) + (-6.2, 3.1) = (2.7, 4.6)
'       (8.9, 1.5) + (8.9, 1.5) = (17.8, 3)
``````

## 注解

``````public:
static System::Numerics::Complex Add(double left, System::Numerics::Complex right);``````
``public static System.Numerics.Complex Add (double left, System.Numerics.Complex right);``
``static member Add : double * System.Numerics.Complex -> System.Numerics.Complex``
``Public Shared Function Add (left As Double, right As Complex) As Complex``

left
Double

right
Complex

#### 返回

`left``right` 的和。The sum of `left` and `right`.

### 注解

（a + c） + di(a + c) + di

### 另请参阅

``````public:
static System::Numerics::Complex Add(System::Numerics::Complex left, double right);``````
``public static System.Numerics.Complex Add (System.Numerics.Complex left, double right);``
``static member Add : System.Numerics.Complex * double -> System.Numerics.Complex``
``Public Shared Function Add (left As Complex, right As Double) As Complex``

left
Complex

right
Double

#### 返回

`left``right` 的和。The sum of `left` and `right`.

### 注解

（a + c） + bi(a + c) + bi

### 另请参阅

``````public:
static System::Numerics::Complex Add(System::Numerics::Complex left, System::Numerics::Complex right);``````
``public static System.Numerics.Complex Add (System.Numerics.Complex left, System.Numerics.Complex right);``
``static member Add : System.Numerics.Complex * System.Numerics.Complex -> System.Numerics.Complex``
``Public Shared Function Add (left As Complex, right As Complex) As Complex``

left
Complex

right
Complex

#### 返回

`left``right` 的和。The sum of `left` and `right`.

### 注解

（a + c） + （b + d） i。(a + c) + (b + d)i.