title: Pass multi -  dimensional array from managed code to unmanaged code
body: <p>I would like to do the following:</p>
  
  <ol>
  <li><p>Create three dimesinal array in c# code like this:</p>
  
  <pre><code>var myArray = new short[x,y,z];
  UnanagedFunction(myArray);
  </code></pre></li>
  <li><p>Pass it to unmanaged code (c++) like this:</p>
  
  <pre><code>void UnmanagedFunction(short*** myArray)
  {
      short first = myArray[0][0][0];
  }
  </code></pre></li>
  </ol>
  
  <p><strong>UPDATED</strong>
  When I try the following code I have runtime error:</p>
  
  <blockquote>
    <p>Attempted to read or write to protected memory.</p>
  </blockquote>
  
  <p>Thank you!!!</p>