C# arrays scope : <p>I'm learning C# for job reasons and I have knowledge in C and C++ so I'm trying to skip as much theory as I can.
I'm having a hard time figuring out why I cannot define arrays outside Main function. If I do this inside Main, It works.</p>

<p>I have tryed some codes from online tutorials of super-basic array sintax; and somehow I can't make them work.</p>

<p>Example:</p>

<pre><code>int [] ages;
   ages= new int[2];
   ages [0] = 20; ---&gt; until I fill the array.
</code></pre>
