Reset a variable via void function
<pre><code>static void Main(string[] args)
{
    int test = 1;

    resetTest();

    Console.Write(test); // Should be 0
}

static void resetTest()
{
    test = 0;
}
</code></pre>

<p>Why doesn't it work? How can I get it? (I don't wanna to use int function and return to the variable) Now I have an error message which says that the variable test is undefined on the function resetTest.</p>
