C#, rotating 2D arrays
<p>I've looked at other post on rotating 2D arrays, but it's not quite what I want.
I want something like this</p>

<pre><code> int[,] original= new int[4,2]
       {
           {1,2},
           {5,6},
           {9,10},
           {13,14}
       };
</code></pre>

<p>I want to turn it like this, 
    rotatedArray = { {1,5,9,13}, {2,6,10,14}};
I want to do some analysis by column, as opposed to by rows.</p>

<p>This works, but is there an easier way??</p>

<pre><code> private static int[,] RotateArray(int[,] myArray)
  {
        int org_rows = myArray.GetLength(0);
        int org_cols = myArray.GetLength(1);

        int[,] myRotate = new int[org_cols, org_rows];

        for (int i = 0; i &lt; org_rows; i++)
        {
            for(int j = 0; j &lt; org_cols; j++)
            {
                myRotate[j, i] = myArray[i, j];
            }
        }

        return myRotate;
    }
</code></pre>

<p>Is there an easy way to iterate through columns in c#?<br>
B</p>
