title: Integrating C# with Matlab
body: <p>I'm Trying to integrate Matlab with C# I made a small prog. to apply average filter<br>
  on an image but an error appears to me on this line of code    </p>
  
  <pre><code>Bitmap Array2Image(MWNumericArray num)
      {
          **double[,] array = (double[,])num.ToArray();**...... return bmp;
      }
  </code></pre>
  
  <p>the error:  <em>Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.</em>  </p>