Extension method error
<p>Just got this error message <strong>"Extension method must be defined in a non-generic static class"</strong>, following is the Class that gives me the error, and I know it has got something to do with the Fisher-Yates shuffle method, but even if I remove it, the error still appears. I also remove every other call of that method, so I can only assume its some auto-generated file that is the problem.. Any idea what I can do? Cause my program ran just fine before I implemented that shuffle.      </p>

<pre><code>    namespace WindowsFormsApplication6
    {
        class RandomContent
        {
            public static string randomFilepath()
        {
            // string array med alla filpaths
            // välj en slumpad filpath att returnera
            return "frågor.txt";
        }

        // Fisher-Yates list-shuffle
        public static void Shuffle&lt;T&gt;(this IList&lt;T&gt; list)
        {
            Random rng = new Random();
            int n = list.Count;
            while (n &gt; 1)
            {
                n--;
                int k = rng.Next(n + 1);
                T value = list[k];
                list[k] = list[n];
                list[n] = value;
            }
        }
    }
}
</code></pre>
