code: public static void Swap(ComplexNumber z1) {
          double t = z1.real;
          z1.real = z1.imaginary;
          z1.imaginary = t;
      }
docs: Swap values between real and imaginary.
  
  @param z1 Complex number.