Where keyword class can be used in c#?
<p>I know 2 places where the class keyword is used in c#. </p>

<ol>
<li>In class declaration </li>
<li>In generic constrains (class GenericClass where T : class)</li>
</ol>

<p>But is there anything I've missed? It's importan to me, becouse I'm writing a program wich counts classes in a file. Can find no info in msdn or C# specification.</p>

<h2>Edit</h2>

<pre><code>#if class
partial class C&lt;T&gt; where T : class
{
    // class!
    int @class = 123;
    string c = "class";
}
partial class C&lt;T&gt; where T : class {}
#else
partial class D {}
partial class D {}
partial class D {}
#endif
</code></pre>

<p>This is accumulation of several answers. </p>
