Syntax to refer an enum member in a generic class
<p>For the following generic class.</p>

<pre><code>class Message&lt;T&gt;
{
    public enum TYPE { Heart, Spade };
}
</code></pre>

<p>In Java, to refer to enum, I can simply</p>

<pre><code>// Works in Java
Message.TYPE type = Message.TYPE.Heart;
</code></pre>

<p>But how about in C#? In C#, I need to provide a <strong>dummy</strong> type</p>

<pre><code>Message&lt;double&gt;.TYPE type = Message&lt;double&gt;.TYPE.Heart;
</code></pre>

<p>Is there any way I can avoid the <code>dummy</code> type?</p>
