<namespace> is a 'type', which is not valid in the given context
<p>I hate checking Boolean to see there state and then toggling them based on it so I wrote something to do it for me. </p>

<p>It keeps giving me the following error:
 is a 'type', which is not valid in the given context</p>

<p>Here is the namespace and class:</p>

<pre><code>namespace Bool
{
    public class ToggleState
    {

        static bool Toggle(bool Bool)
        {
            if (Bool == true)
            {
                return false;
            }
            else
            {
                return true;
            }
        }
    }
}
</code></pre>

<p>and here is the code that's giving the error</p>

<pre><code>Test = Bool.ToggleState(Test);
</code></pre>