title: Get values from an enum into a generic List
body: <p>I don't know how to convert the following line from VB to C#:</p>
  
  <pre><code>Dim values As New List(Of T)(System.Enum.GetValues(GetType(T)))
  </code></pre>
  
  <p>My version doesn't work:</p>
  
  <pre><code>List&lt;T&gt; values = new List&lt;T&gt;(System.Enum.GetValues(typeof(T)));
  </code></pre>
  
  <blockquote>
    <p>The best overloaded method match for
    'System.Collections.Generic.List.List(System.Collections.Generic.IEnumerable)'
    has some invalid arguments</p>
  </blockquote>
  
  <p>The constructor-parameter doesn't take it that way - what cast (or else) am I missing?</p>
  
  <p>For clarification: It is wrapped up within the following generic method</p>
  
  <pre><code>public static void BindToEnum&lt;T&gt;()
  {
      List&lt;T&gt; values = new List&lt;T&gt;(System.Enum.GetValues(typeof(T)));
      //...
  }
  </code></pre>