title: Conversion double array to byte array
body: <p>How do I convert a <code>double[]</code> array to a <code>byte[]</code> array and vice versa?</p>
  
  <pre><code>class Program
  {
      static void Main(string[] args)
      {
          Console.WriteLine(sizeof(double));
          Console.WriteLine(double.MaxValue);
  
          double[] array = new double[] { 10.0, 20.0, 30.0, 40.0 };
          byte[] convertedarray = ?
  
          Console.Read();
      }
  }
  </code></pre>