title: The type arguments for method '' cannot be inferred from the usage. Try specifying the type arguments explicitly
body: <p>While doing this one</p>
  
  <pre><code>IEnumerable&lt;Colors&gt; c = db.Products.Where(t =&gt; t.ProductID == p.ProductID).SelectMany(s =&gt; s.Colors);
  if (c.Any()) sp.color = Constructor(c);
  </code></pre>
  
  <p>and later on</p>
  
  <pre><code>private string Constructor&lt;T&gt;(List&lt;T&gt; list)
  {
       //Do something
  }
  </code></pre>
  
  <p>i get the error</p>
  
  <blockquote>
    <p>The type arguments for method
    'Controller.Constructor(System.Collections.Generic.List)' cannot
    be inferred from the usage. Try specifying the type arguments
    explicitly.</p>
  </blockquote>
  
  <p>Of course it is not correct. But what am i missing?</p>