Can't create static variable inside a static method?
<p>Why won't this work?</p>

<pre><code>public static int[] GetListOfAllDaysForMonths()
{
    static int[] MonthDays = new int[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};

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

<p>I had to move the variable declaration outside of the method:</p>

<pre><code>    static int[] MonthDays = new int[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
public static int[] GetListOfAllDaysForMonths()
{
    return MonthDays;
}
</code></pre>

<p>Also, so by creating it this way, we only have one instance of this array floating around in memory?  This method sits inside a static class.</p>
