static int in c#
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace LearnThread
{
    class Delay
    {
        public int timePass()
        {
            static int i=0;
            for(i=0; i&lt;100;i++)
            {
                Thread.Sleep(1000);
            }
            return i;
        }
    }
}
</code></pre>

<blockquote>
  <p>Error:The modifier 'static' is not valid for this item</p>
</blockquote>

<p>Why static is error here? We cannot use static for int as we can use in C language?</p>
