how to loop through an array of vectors in C#
<p>I now have an array of vectors:</p>

<pre><code>static Vector3[] axes = 
    new Vector3[] { Vector3.UnitX, Vector3.UnitY, Vector3.UnitZ };
</code></pre>

<p>and I want to loop through it,the code I write is:</p>

<pre><code>for(int i=0;i&lt;axes.Length;i++)
 {

    do sth. about axes[i];

 }
</code></pre>

<p>However,it doesnt work and gets into infinite loop,could anyone help?
thx. </p>
